On 5/10/07, William Stein <[EMAIL PROTECTED]> wrote: > > 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.
Yup, thanks for catching that. I misread http://osdir.com/ml/python.patches/2003-09/msg00139.html as having been applied *for* 2.3, rather than after it. We still support 2.3, so I'll add the monkeypatch solution straight in ipython so that we continue to work OK with 2.3. We must not have too many users on 2.3, since nobody had reported this before :) > (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. I'm still curious as to why the sage build on resolves that #ifdef to false. It's a bit odd. In the original report, he was using Feisty on a Core Duo, was that 32 or 64 bit? Cheers, f --~--~---------~--~----~------------~-------~--~----~ 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/ -~----------~----~----~----~------~----~------~--~---
