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


Groups > comp.lang.python > #15796

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

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 <drobinow@gmail.com>
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> <mailman.2786.1321487193.27778.python-list@python.org> <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 <drobinow@gmail.com>
To Ben Finney <ben+python@benfinney.id.au>
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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2788.1321490973.27778.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Wed, Nov 16, 2011 at 6:59 PM, Ben Finney <ben+python@benfinney.id.au> wrote:
> David Robinow <drobinow@gmail.com> writes:
>
>> On Wed, Nov 16, 2011 at 4:09 PM, Ben Finney <ben+python@benfinney.id.au> 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
>> > <URL:http://docs.python.org/library/readline.html>
> […]
>
>> > Reading the documentation, I see that the ‘readline’ library is only
>> > linked with Python on Unix-alike operating systems.
>
>>  I'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: “Platforms: Unix” limiting the
> 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
> <URL:http://bugs.python.org/> 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.

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