Hi,
First, if you're using sage and have the readline/load problem, do
sage -i ipython-0.8.0.p1
I think the following thread on python-dev is very relevant to this discussion.
http://mail.python.org/pipermail/python-dev/2003-August/037845.html
Some comments:
(1) readline.clear_history wasn't in Python 2.3, but according to the
top of iplib.py "Requires Python 2.3 or newer." So I think you need
to either not require use of clear_history in iplib.py, or don't suport
Python 2.3.
(2) evidently some readline versions have clear_history and some don't,
according to the discussion in the thread above. The Python devs decided
the best solution was to silently just not have the clear_history function
on a platform where their scripts decide it isn't available. I think this is
what is happening in this case.
William
On 5/10/07, Justin C. Walker <[EMAIL PROTECTED]> wrote:
>
> Not to confuse the issue, but:
>
> On May 10, 2007, at 17:14 , Fernando Perez wrote:
> > On 5/10/07, William Stein <[EMAIL PROTECTED]> wrote:
> >> I just did a fresh build of sage-2.5 on one of my 64-bit linux boxes,
> >> and clear_history is definitely *not* in Python 2.5.1's build of
> >> readline on this system.
> [snip]
> > Python 2.5.1 (r251:54863, May 10 2007, 18:03:14)
> > [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
> > Type "help", "copyright", "credits" or "license" for more information.
> > Loading hist!
> >>>> import readline
> >>>> readline.__file__
> > '/scratch/local/home/fperez/tmp/local2/lib/python2.5/lib-dynload/
> > readline.so'
> >>>> readline.clear_history
> > <built-in function clear_history>
>
> On my Mac OS X system, after invoking sage-env, I get the same
> results as Fernando, using SAGE 2.5 as installed and built yesterday
> AM (Pacific time). I'm not sure what this contributes to the
> discussion, but ...
>
> Justin
>
> --
> Justin C. Walker, Curmudgeon-At-Large
> Institute for the Absorption of Federal Funds
> --------
> Men are from Earth.
> Women are from Earth.
> Deal with it.
> --------
>
>
>
>
> >
>
--
William Stein
Associate Professor of Mathematics
University of Washington
http://www.williamstein.org
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---