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


Groups > comp.lang.python > #6796 > unrolled thread

Updated now can't scroll uparrow

Started byGnarlodious <gnarlodious@gmail.com>
First post2011-06-01 07:37 -0700
Last post2011-06-03 01:08 -0700
Articles 6 — 3 participants

Back to article view | Back to comp.lang.python


Contents

  Updated now can't scroll uparrow Gnarlodious <gnarlodious@gmail.com> - 2011-06-01 07:37 -0700
    Re: Updated now can't scroll uparrow Chris Rebert <clp2@rebertia.com> - 2011-06-01 09:55 -0700
      Re: Updated now can't scroll uparrow Gnarlodious <gnarlodious@gmail.com> - 2011-06-01 09:59 -0700
        Re: Updated now can't scroll uparrow Ned Deily <nad@acm.org> - 2011-06-01 13:56 -0700
          Re: Updated now can't scroll uparrow Gnarlodious <gnarlodious@gmail.com> - 2011-06-02 19:40 -0700
            Re: Updated now can't scroll uparrow Ned Deily <nad@acm.org> - 2011-06-03 01:08 -0700

#6796 — Updated now can't scroll uparrow

FromGnarlodious <gnarlodious@gmail.com>
Date2011-06-01 07:37 -0700
SubjectUpdated now can't scroll uparrow
Message-ID<8eb67ffb-cd6e-4875-af4e-5fb8b69a1d80@s2g2000yql.googlegroups.com>
I updated Python to 3.1.3 on Mac OSX. Now suddenly in the Interactive
interpreter I get all this instead of scrolling the history:

>>> ^[[A^[[A^[[A

What's wrong and how to fix it?

-- Gnarlie
http://Gnarlodious.com

[toc] | [next] | [standalone]


#6802

FromChris Rebert <clp2@rebertia.com>
Date2011-06-01 09:55 -0700
Message-ID<mailman.2370.1306947314.9059.python-list@python.org>
In reply to#6796
On Wed, Jun 1, 2011 at 7:37 AM, Gnarlodious <gnarlodious@gmail.com> wrote:
> I updated Python to 3.1.3 on Mac OSX. Now suddenly in the Interactive
> interpreter I get all this instead of scrolling the history:
>
>>>> ^[[A^[[A^[[A
>
> What's wrong and how to fix it?

Looks like GNU readline support wasn't enabled in the build you
installed. How did you install your Python?

Cheers,
Chris

[toc] | [prev] | [next] | [standalone]


#6803

FromGnarlodious <gnarlodious@gmail.com>
Date2011-06-01 09:59 -0700
Message-ID<6dc00d94-2776-47c1-8ad6-d7e608c6e403@n11g2000yqf.googlegroups.com>
In reply to#6802
Like so:

./configure MACOSX_DEPLOYMENT_TARGET=10.6 \
--enable-framework=/usr/local/python-3.1/frameworks \
--prefix=/usr/local/python-3.1 \
--enable-universalsdk=/ \
--with-universal-archs=intel

Is there some directive to enable Readline?

-- Gnarlie
http://Gnarlodious.com

[toc] | [prev] | [next] | [standalone]


#6826

FromNed Deily <nad@acm.org>
Date2011-06-01 13:56 -0700
Message-ID<mailman.2380.1306961775.9059.python-list@python.org>
In reply to#6803
In article 
<6dc00d94-2776-47c1-8ad6-d7e608c6e403@n11g2000yqf.googlegroups.com>,
 Gnarlodious <gnarlodious@gmail.com> wrote:

> Like so:
> 
> ./configure MACOSX_DEPLOYMENT_TARGET=10.6 \
> --enable-framework=/usr/local/python-3.1/frameworks \
> --prefix=/usr/local/python-3.1 \
> --enable-universalsdk=/ \
> --with-universal-archs=intel
> 
> Is there some directive to enable Readline?

You need to supply your own copy of GNU readline; Apple does not ship 
it.  You can use one from MacPorts or other 3rd-party distributor.  
Python 2.7 and 3.2 have a feature to use the readline compatibility 
interface of BSD editline (libedit) which Apple does ship but that 
feature was not backported to Python 3.1.  The python.org 3.1.x 
installers are built with GNU readline (and there is one for 3.1.4rc1).

-- 
 Ned Deily,
 nad@acm.org

[toc] | [prev] | [next] | [standalone]


#6904

FromGnarlodious <gnarlodious@gmail.com>
Date2011-06-02 19:40 -0700
Message-ID<730fedb4-a3ad-46df-ad66-2376d0af4d4d@p13g2000yqh.googlegroups.com>
In reply to#6826
After copious headscratching I took Ned's advice and went for 3.2
which includes built-in interactive arrow key support. To any Mac OSX
readers, save yourself the trouble and don't even try Python 3.1.3.

-- Gnarlie
http://Gnarlodious.com

[toc] | [prev] | [next] | [standalone]


#6922

FromNed Deily <nad@acm.org>
Date2011-06-03 01:08 -0700
Message-ID<mailman.2421.1307088507.9059.python-list@python.org>
In reply to#6904
In article 
<730fedb4-a3ad-46df-ad66-2376d0af4d4d@p13g2000yqh.googlegroups.com>,
 Gnarlodious <gnarlodious@gmail.com> wrote:
> After copious headscratching I took Ned's advice and went for 3.2
> which includes built-in interactive arrow key support. To any Mac OSX
> readers, save yourself the trouble and don't even try Python 3.1.3.

Or use a binary installer (like those provided by python.org) or a 
third-party package distributor (like MacPorts or Homebrew) that has 
done the hard work for you.  That said, you should find many 
improvements in 3.2.x over 3.1.x.  3.2.1rc1 ("rc" == "release 
candidate") is available now and an rc2 should be available in the very 
near future.  If you have to stick with 3.1 for some reason, there's 
also a 3.1.4rc1 available now.  And a 2.7.2rc1.  All available with 
source, Windows installers, and Mac OS X installers.

http://www.python.org/download/releases/3.2.1/
http://www.python.org/download/releases/3.1.4/
http://www.python.org/download/releases/2.7.2/

-- 
 Ned Deily,
 nad@acm.org

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web