Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #16218

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

Date 2011-11-25 11:29 +0000
From Tim Golden <mail@timgolden.me.uk>
Subject Re: python shell that saves history of typed in commands that will persist between reboots
References (6 earlier) <4ecde007$0$30003$c3e8da3$5496439d@news.astraweb.com> <CAPTjJmp_Fix189fkuAvZpH+ywg-18tLMYwUZOywccy0W6uT4iA@mail.gmail.com> <mailman.2999.1322124705.27778.python-list@python.org> <bea9a0d9-2971-4d52-9037-a0423af39d4d@v31g2000prg.googlegroups.com> <qn74q8-o0f.ln1@satorlaser.homedns.org>
Newsgroups comp.lang.python
Message-ID <mailman.3037.1322220596.27778.python-list@python.org> (permalink)

Show all headers | View raw


On 25/11/2011 10:37, Ulrich Eckhardt wrote:
> Am 25.11.2011 04:49, schrieb 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 shell you can open and exit
>>> the interpreter as many times as you like and the Python command
>>> history will be retained via the cmd shell's history mechanism,
>>> and kept distinct from the history of other things you may type
>>> into the cmd shell.
>>
>> And again, I'm definitely not seeing this. Inside the one cmd shell,
>> each instance of Python has no recollection of the history of the
>> last.
>
> 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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

python shell that saves history of typed in commands that will persist between reboots goldtech <goldtech@worldpost.com> - 2011-11-15 19:38 -0800
  Re: python shell that saves history of typed in commands that will persist between reboots sword <john.37@gmail.com> - 2011-11-15 19:45 -0800
  Re: python shell that saves history of typed in commands that will persist between reboots Tim Golden <mail@timgolden.me.uk> - 2011-11-16 08:37 +0000
  Re: python shell that saves history of typed in commands that will persist between reboots Ben Finney <ben+python@benfinney.id.au> - 2011-11-17 08:09 +1100
    Re: python shell that saves history of typed in commands that will persist between reboots David Robinow <drobinow@gmail.com> - 2011-11-16 18:46 -0500
      Re: python shell that saves history of typed in commands that will persist between reboots Ben Finney <ben+python@benfinney.id.au> - 2011-11-17 10:59 +1100
        Re: python shell that saves history of typed in commands that will persist between reboots David Robinow <drobinow@gmail.com> - 2011-11-16 19:49 -0500
        Re: python shell that saves history of typed in commands that will persist between reboots Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com> - 2011-11-24 15:05 +0100
    Re: python shell that saves history of typed in commands that will persist between reboots alex23 <wuwei23@gmail.com> - 2011-11-16 19:04 -0800
  Re: python shell that saves history of typed in commands that will persist between reboots Anssi Saari <as@sci.fi> - 2011-11-23 11:23 +0200
    Re: python shell that saves history of typed in commands that will persist between reboots Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-11-23 10:29 +0000
      Re: python shell that saves history of typed in commands that will persist between reboots Tim Golden <mail@timgolden.me.uk> - 2011-11-23 10:37 +0000
        Re: python shell that saves history of typed in commands that will persist between reboots Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-11-24 02:16 +0000
          Re: python shell that saves history of typed in commands that will persist between reboots Chris Angelico <rosuav@gmail.com> - 2011-11-24 15:30 +1100
            Re: python shell that saves history of typed in commands that will persist between reboots Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-11-24 06:11 +0000
              Re: python shell that saves history of typed in commands that will persist between reboots Chris Angelico <rosuav@gmail.com> - 2011-11-24 17:22 +1100
              Re: python shell that saves history of typed in commands that will persist between reboots Tim Golden <mail@timgolden.me.uk> - 2011-11-24 08:51 +0000
                Re: python shell that saves history of typed in commands that will persist between reboots alex23 <wuwei23@gmail.com> - 2011-11-24 19:49 -0800
                Re: python shell that saves history of typed in commands that will persist between reboots Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com> - 2011-11-25 11:37 +0100
                Re: python shell that saves history of typed in commands that will persist between reboots Tim Golden <mail@timgolden.me.uk> - 2011-11-25 11:29 +0000
                Re: python shell that saves history of typed in commands that will persist between reboots 88888 Dihedral <dihedral88888@googlemail.com> - 2011-11-25 15:19 -0800
                Re: python shell that saves history of typed in commands that will persist between reboots 88888 Dihedral <dihedral88888@googlemail.com> - 2011-11-25 15:19 -0800
              Re: python shell that saves history of typed in commands that will persist between reboots Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2011-11-24 10:11 -0800
        Re: python shell that saves history of typed in commands that will persist between reboots alex23 <wuwei23@gmail.com> - 2011-11-24 19:47 -0800
          Re: python shell that saves history of typed in commands that will persist between reboots Tim Golden <mail@timgolden.me.uk> - 2011-11-25 08:58 +0000
            Re: python shell that saves history of typed in commands that will persist between reboots alex23 <wuwei23@gmail.com> - 2011-11-25 19:42 -0800
  Re: python shell that saves history of typed in commands that will persist between reboots DevPlayer <devplayer@gmail.com> - 2011-11-27 17:20 -0800

csiph-web