Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'bug': 0.02; 'fixes': 0.05; 'url:bugs': 0.05; 'url:pypi': 0.08; 'python': 0.08; 'investigate': 0.09; 'suggestion.': 0.09; 'tracker': 0.09; 'subject:python': 0.11; 'library': 0.14; '16,': 0.15; 'forgotten': 0.15; 'cc:addr :python-list': 0.15; 'finney': 0.16; 'subject: \n ': 0.16; 'subject:between': 0.16; 'thread.': 0.16; 'wed,': 0.17; 'wrote:': 0.18; 'specifies': 0.18; 'appropriate': 0.19; 'appears': 0.20; 'suggest': 0.20; 'cc:no real name:2**0': 0.21; 'vista': 0.21; 'appear': 0.23; 'systems.': 0.23; 'wrong?': 0.23; 'header:In- Reply-To:1': 0.23; 'command': 0.24; 'shell': 0.24; 'cc:2**0': 0.25; 'code': 0.25; 'writes:': 0.25; 'fine': 0.26; 'windows': 0.26; '"the': 0.26; 'thanks.': 0.26; "i'm": 0.26; 'described': 0.28; 'discussed': 0.28; 'module.': 0.28; 'cc:addr:python.org': 0.29; 'message-id:@mail.gmail.com': 0.29; 'received:209.85.214': 0.30; 'ctypes': 0.30; 'received:mail-bw0-f46.google.com': 0.30; 'url:library': 0.30; 'installed': 0.30; 'least': 0.31; 'nov': 0.31; 'pm,': 0.31; 'it.': 0.33; 'operating': 0.33; 'david': 0.34; 'url:python': 0.35; 'but': 0.37; 'using': 0.37; 'could': 0.38; 'linked': 0.38; 'necessary.': 0.38; 'purposes': 0.38; 'received:google.com': 0.38; 'perhaps': 0.38; 'received:209.85': 0.38; 'url:org': 0.38; 'url:docs': 0.38; "i'd": 0.39; "it's": 0.39; 'subject:: ': 0.39; 'received:209': 0.40; 'managing': 0.60; 'your': 0.61; '2011': 0.62; 'below': 0.63; 'subject:will': 0.64; 'further': 0.64; 'glad': 0.70; 'subject:commands': 0.84; 'subject:history': 0.84; "\xa0i'm": 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=JrIhT6cpK4DQp3nrwliYrn0A+1nH4PYYwHVxfzPmTHo=; b=TZDoGbZsC1vSI2Lp+DdfVuWMb2nrr24cqpSyY4x9AtL4yOXMaIPThxpQQHDhFBZ4dX tVxKfR4MAXgAUEbi8LIdsXdsAXROtdYopMdHhtrp8f6iFgSijOqD3ZfuZh2nT1iJvZTc wDcEYEuMyEZfpgxldkh7MnWVZiScu7hQirjQ8= MIME-Version: 1.0 In-Reply-To: <87hb23ei00.fsf@benfinney.id.au> References: <4737007e-029d-4ecb-9315-f3ceb4bb06ed@t16g2000vba.googlegroups.com> <8762ijlqpt.fsf@benfinney.id.au> <87hb23ei00.fsf@benfinney.id.au> Date: Wed, 16 Nov 2011 19:49:31 -0500 Subject: Re: python shell that saves history of typed in commands that will persist between reboots From: David Robinow To: Ben Finney Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org 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: 39 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1321490973 news.xs4all.nl 6925 [2001:888:2000:d::a6]:52306 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:15796 On Wed, Nov 16, 2011 at 6:59 PM, Ben Finney wr= ote: > David Robinow writes: > >> On Wed, Nov 16, 2011 at 4:09 PM, Ben Finney = 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 >> > > [=85] > >> > Reading the documentation, I see that the =91readline=92 library is on= ly >> > linked with Python on Unix-alike operating systems. > >> =A0I'm not sure what documentation you're reading > > The same documentation I linked to above. Immediately below the title, > it specifies a limited set of platforms: =93Platforms: Unix=94 limiting t= he > availability of the described module. > >> 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 > would be the appropriate place for such a > suggestion. Upon further investigation, it turns out that I'm using pyreadline from http://pypi.python.org/pypi/pyreadline. I'd forgotten I'd installed it. No documentation fixes appear to be necessary. "The pyreadline package is a python implementation of GNU readline functionality it is based on the ctypes based UNC readline package by Gary Bishop. It is not complete. It has been tested for use with windows 2000 and windows xp." It appears to work in Vista also, at least for the purposes discussed in this thread.