python shell that saves history of typed in commands that willpersist between reboots

T

Tim Golden

Am 25.11.2011 04:49, schrieb alex23:

I'm seeing history browsing in Python on MS Windows XP here and it also
works for every other commandline-based program. Well, it seems with the
exception of the ActivePython distribution of Python. That one
intentionally changes the MS Windows defaults like Control-Z behaviour
and at the same time, maybe even as a side effect, it breaks the shell's
history browsing.

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
 
8

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 a lot import A,B,C,D...... on the top level.
 
8

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 a lot import A,B,C,D...... on the top level.
 
A

alex23

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 :)
 
D

DevPlayer

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 will still be a command history somewhere.

Like bash history in Linux.

Thanks

Something that might be of interest is wxPython's pyslicesshell.py
it's not commandline in console window but the interpreter in a
window. And you can save it.

I haven't used it lately by there's also PythonWin
http://python.net/crew/skippy/win32/PythonwinPreview.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top