On Thu, 24 Nov 2011 15:30:57 +1100, Chris Angelico wrote: > On Thu, Nov 24, 2011 at 1:16 PM, Steven D'Aprano > <steve+comp.lang.pyt...@pearwood.info> wrote: >> On Wed, 23 Nov 2011 10:37:56 +0000, Tim Golden wrote: >> >>> The interpreter inherits the command shell's history function: Open a >>> cmd window and then a Python session. Do some stuff. >>> >>> Ctrl-Z to exit to the surrounding cmd window. Do some random cmd >>> stuff: dir, cd, etc. >>>>> >> [1]+ Stopped python > > Ctrl-Z is the Windows equivalent (well, mostly) of Linux's Ctrl-D. You > want to cleanly exit the interpreter, not SIGSTOP it.
One of us is confused, and I'm pretty sure it's you :) Tim went on to say "Obviously this only applies when an underlying cmd session persists", which I understood as implying that he too is using Linux where Ctrl-Z stops the process, but does not exit it. -- Steven -- http://mail.python.org/mailman/listinfo/python-list