Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python.': 0.04; 'distinct': 0.05; 'interpreter': 0.05; 'defaults': 0.07; 'retained': 0.07; 'python': 0.08; 'from:addr:timgolden.me.uk': 0.09; 'from:name:tim golden': 0.09; 'linux.': 0.09; 'message- id:@timgolden.me.uk': 0.09; 'prevents': 0.09; 'subject:python': 0.10; 'exception': 0.12; 'things.': 0.12; 'eckhardt': 0.16; 'history.': 0.16; 'linux).': 0.16; 'received:74.55.86': 0.16; 'received:74.55.86.74': 0.16; 'received:smtp.webfaction.com': 0.16; 'received:webfaction.com': 0.16; 'subject: \n ': 0.16; 'subject:between': 0.16; 'cc:addr:python-list': 0.16; 'wrote:': 0.18; '>>>': 0.18; 'instance': 0.18; 'seems': 0.20; 'cc:no real name:2**0': 0.20; 'maybe': 0.21; 'header:In-Reply-To:1': 0.22; 'breaks': 0.23; 'cc:2**0': 0.24; 'command': 0.24; 'shell': 0.24; 'windows': 0.26; "i'm": 0.26; '24,': 0.29; 'exit': 0.29; 'cc:addr:python.org': 0.29; 'nov': 0.29; 'pm,': 0.29; 'fairly': 0.30; 'cmd': 0.30; 'tjg': 0.30; 'does': 0.32; 'adds': 0.32; 'changes': 0.32; 'header:User-Agent:1': 0.33; 'this.': 0.33; 'that,': 0.33; 'things': 0.34; 'but': 0.37; 'except': 0.37; 'received:192': 0.37; 'open': 0.38; 'using': 0.38; 'seeing': 0.38; 'received:192.168': 0.40; 'within': 0.60; 'type': 0.61; 'constantly': 0.64; 'from:addr:mail': 0.64; 'subject:will': 0.64; 'here': 0.65; 'kept': 0.68; 'golden': 0.73; 'browsing': 0.77; 'subject:commands': 0.84; 'subject:history': 0.84; 'to:none': 0.93 Date: Fri, 25 Nov 2011 11:29:51 +0000 From: Tim Golden User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 CC: python-list@python.org Subject: Re: python shell that saves history of typed in commands that will persist between reboots References: <4737007e-029d-4ecb-9315-f3ceb4bb06ed@t16g2000vba.googlegroups.com> <4ecccb07$0$29993$c3e8da3$5496439d@news.astraweb.com> <4ecda8ea$0$30003$c3e8da3$5496439d@news.astraweb.com> <4ecde007$0$30003$c3e8da3$5496439d@news.astraweb.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 32 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1322220596 news.xs4all.nl 6895 [2001:888:2000:d::a6]:37905 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:16218 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 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