python shell that saves history of typed in commands that will persist between reboots
Steven D'Aprano
steve+comp.lang.python at pearwood.info
Thu Nov 24 01:11:19 EST 2011
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.python at 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
More information about the Python-list
mailing list