Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-27 Thread DevPlayer
On Nov 15, 10:38 pm, goldtech goldt...@worldpost.com wrote: Hi, Using Windows. Is there a python shell that has a history of typed in commands? I don't need output of commands just what I typed it. I need it to save between sessions - something that no shell seems to do. If I reboot there

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-25 Thread Tim Golden
On 25/11/2011 03:47, alex23 wrote: Tim Goldenm...@timgolden.me.uk 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. Start a

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-25 Thread Ulrich Eckhardt
Am 25.11.2011 04:49, schrieb alex23: On Nov 24, 6:51 pm, Tim Goldenm...@timgolden.me.uk wrote: The Ctrl-Z thing is what *exits* the interpreter on Windows (a la Ctrl-D on Linux). With ActivePython, Ctrl-D works as well, which is a godsend as I'm constantly working across Windows linux. In

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-25 Thread Tim Golden
On 25/11/2011 10:37, Ulrich Eckhardt wrote: Am 25.11.2011 04:49, schrieb alex23: On Nov 24, 6:51 pm, Tim Goldenm...@timgolden.me.uk wrote: The Ctrl-Z thing is what *exits* the interpreter on Windows (a la Ctrl-D on Linux). With ActivePython, Ctrl-D works as well, which is a godsend as I'm

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-25 Thread 88888 Dihedral
Except that, intriguingly, I'm also using an ActiveState distro and it neither adds Ctrl-D nor prevents history. But I'm fairly sure that pyreadline does both of those things. TJG In python I can spawn a process to run python byte code that will produce a file with results. Easy to avoid

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-25 Thread alex23
On Nov 25, 6:58 pm, Tim Golden m...@timgolden.me.uk wrote: Do you have the pyreadline module installed? ISTR that that takes over from the standard cmd processing... I'm pretty sure I do. It's really not an issue, though, as I tend to stick to linux iPython where possible :) --

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-24 Thread Tim Golden
On 24/11/2011 06:22, Chris Angelico wrote: On Thu, Nov 24, 2011 at 5:11 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: 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

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-24 Thread Ulrich Eckhardt
Am 17.11.2011 00:59, schrieb Ben Finney: David Robinowdrobi...@gmail.com writes: but your code works fine on Windows. Thanks. I'm glad to know that. Perhaps you could investigate why, and suggest an update to the above documentation if it's wrong? The bug tracker at

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-24 Thread alex23
On Nov 24, 6:51 pm, Tim Golden m...@timgolden.me.uk wrote: The Ctrl-Z thing is what *exits* the interpreter on Windows (a la Ctrl-D on Linux). With ActivePython, Ctrl-D works as well, which is a godsend as I'm constantly working across Windows linux. In short - on Windows, within one cmd

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-24 Thread alex23
Tim Golden m...@timgolden.me.uk 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. Start a second Python session. up-arrow

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-23 Thread Anssi Saari
goldtech goldt...@worldpost.com writes: Using Windows. Is there a python shell that has a history of typed in commands? Is there a shell that doesn't have history then? At least both the vanilla shell and Idle both have basic history in Windows. IPython for more fun. --

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-23 Thread Steven D'Aprano
On Wed, 23 Nov 2011 11:23:19 +0200, Anssi Saari wrote: goldtech goldt...@worldpost.com writes: Using Windows. Is there a python shell that has a history of typed in commands? Is there a shell that doesn't have history then? At least both the vanilla shell and Idle both have basic history

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-23 Thread Tim Golden
On 23/11/2011 10:29, Steven D'Aprano wrote: On Wed, 23 Nov 2011 11:23:19 +0200, Anssi Saari wrote: goldtechgoldt...@worldpost.com writes: Using Windows. Is there a python shell that has a history of typed in commands? Is there a shell that doesn't have history then? At least both the

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-23 Thread Steven D'Aprano
On Wed, 23 Nov 2011 10:37:56 +, 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. Start a second Python

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-23 Thread Chris Angelico
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 +, 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

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-23 Thread Steven D'Aprano
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 +, Tim Golden wrote: The interpreter inherits the command shell's history function: Open a cmd window and

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-23 Thread Chris Angelico
On Thu, Nov 24, 2011 at 5:11 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: 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

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-16 Thread Tim Golden
On 16/11/2011 03:38, goldtech wrote: Hi, Using Windows. Is there a python shell that has a history of typed in commands? Have a look at DreamPie: http://dreampie.sourceforge.net/ TJG -- http://mail.python.org/mailman/listinfo/python-list

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-16 Thread Ben Finney
goldtech goldt...@worldpost.com writes: Using Windows. Is there a python shell that has a history of typed in commands? I don't know about MS Windows, but the Python interactive shell can be linked with the GNU Readline library for managing its command line

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-16 Thread David Robinow
On Wed, Nov 16, 2011 at 4:09 PM, Ben Finney ben+pyt...@benfinney.id.au wrote: goldtech goldt...@worldpost.com writes: Using Windows. Is there a python shell that has a history of typed in commands? I don't know about MS Windows, but the Python interactive shell can be linked with the GNU

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-16 Thread Ben Finney
David Robinow drobi...@gmail.com writes: On Wed, Nov 16, 2011 at 4:09 PM, Ben Finney ben+pyt...@benfinney.id.au wrote: I don't know about MS Windows, but the Python interactive shell can be linked with the GNU Readline library for managing its command line

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-16 Thread David Robinow
On Wed, Nov 16, 2011 at 6:59 PM, Ben Finney ben+pyt...@benfinney.id.au wrote: David Robinow drobi...@gmail.com writes: On Wed, Nov 16, 2011 at 4:09 PM, Ben Finney ben+pyt...@benfinney.id.au wrote: I don't know about MS Windows, but the Python interactive shell can be linked with the GNU

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-16 Thread alex23
On Nov 17, 7:09 am, Ben Finney ben+pyt...@benfinney.id.au wrote: You can then use that functionality in your Python interactive startup file. Here's mine: Awesome, thank you for this. I use iPython where ever possible but there are times where I just can't avoid the default shell and this will

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-15 Thread sword
Maybe you're looking for ipython? History, tab-complete, sort of things in it. goldtech wrote: Hi, Using Windows. Is there a python shell that has a history of typed in commands? I don't need output of commands just what I typed it. I need it to save between sessions - something that no