Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'interpreter': 0.05; 'stuff.': 0.05; 'say.': 0.07; 'python': 0.08; 'from:addr:timgolden.me.uk': 0.09; 'from:name:tim golden': 0.09; 'function:': 0.09; 'message-id:@timgolden.me.uk': 0.09; 'subject:python': 0.10; 'alex23': 0.16; 'countless': 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; 'win7': 0.16; 'cc:addr:python-list': 0.16; 'wrote:': 0.18; 'session.': 0.18; 'setup.': 0.18; 'cc:no real name:2**0': 0.20; 'header:In-Reply- To:1': 0.22; 'versions': 0.23; 'cc:2**0': 0.24; 'command': 0.24; 'module': 0.26; 'windows': 0.26; 'random': 0.28; '(and': 0.28; 'exit': 0.29; 'true,': 0.29; 'worked': 0.29; 'cc:addr:python.org': 0.29; 'second': 0.29; 'cmd': 0.30; 'tjg': 0.30; 'least': 0.30; "isn't": 0.33; 'header:User-Agent:1': 0.33; 'identical': 0.34; 'window': 0.35; 'received:192': 0.37; 'open': 0.38; 'some': 0.38; 'received:192.168': 0.40; 'entered': 0.40; 'back': 0.62; 'from:addr:mail': 0.64; 'subject:will': 0.64; 'golden': 0.73; 'cd,': 0.84; 'dir,': 0.84; "session's": 0.84; 'setups': 0.84; 'stuff:': 0.84; 'subject:commands': 0.84; 'subject:history': 0.84; 'to:none': 0.93 Date: Fri, 25 Nov 2011 08:58:30 +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> <944e0207-7083-4ae8-a59e-3e05b595708e@d37g2000prg.googlegroups.com> In-Reply-To: <944e0207-7083-4ae8-a59e-3e05b595708e@d37g2000prg.googlegroups.com> 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: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1322211521 news.xs4all.nl 6888 [2001:888:2000:d::a6]:47855 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:16206 On 25/11/2011 03:47, alex23 wrote: > 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 session. up-arrow etc. will bring back >> the previous Python session's commands (and not the ones you >> entered in the surrounding shell) > > This isn't true, at least not for ActivePython 2.7.2.5 under Windows > 7-64. The second session has no history whatsoever. Well I don't know what to say. It works for me with an almost identical setup. (ActivePython 2.7.1.4 Win7 x64). And has worked for me over countless setups on different machines / versions of Windows / versions of Python etc. Do you have the pyreadline module installed? ISTR that that takes over from the standard cmd processing... TJG