On 5/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> > A couple of points to note:
> >
> > * What platform are you using?
>
> Core2 Duo / Ubuntu F

Mmh, that's exactly what I'm running (not core duo, but still Ubuntu
Feisty on Intel)

> > * can you run the following in a plain python shell (using the SAGE
> > python, of course):
> >
> >>>> import readline
> >>>> readline.clear_history
> > <built-in function clear_history>
>
> Nope:
>
> [EMAIL PROTECTED]:~$ sage/sage -python
> Python 2.5.1 (r251:54863, May 10 2007, 15:24:24)
> [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import readline
> >>> readline.clear_history
> Traceback (most recent call last):
>    File "<stdin>", line 1, in <module>
> AttributeError: 'module' object has no attribute 'clear_history'

That's seriously, seriously strange.  Can you do this please?

>>> import readline
>>> readline.__file__
'/usr/lib/python2.5/lib-dynload/readline.so'
>>> dir(readline)
['__doc__', '__file__', '__name__', 'add_history', 'clear_history',
'get_begidx', 'get_completer', 'get_completer_delims',
'get_current_history_length', 'get_endidx', 'get_history_item',
'get_history_length', 'get_line_buffer', 'insert_text',
'parse_and_bind', 'read_history_file', 'read_init_file', 'redisplay',
'remove_history_item', 'replace_history_item', 'set_completer',
'set_completer_delims', 'set_history_length', 'set_pre_input_hook',
'set_startup_hook', 'write_history_file']

And also (for your proper path):

planck[~]> ldd /usr/lib/python2.5/lib-dynload/readline.so
        linux-gate.so.1 =>  (0xffffe000)
        libreadline.so.5 => /lib/libreadline.so.5 (0x40028000)
        libncursesw.so.5 => /lib/libncursesw.so.5 (0x4005a000)
        libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0x400a8000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x400bf000)
        libncurses.so.5 => /lib/libncurses.so.5 (0x40200000)
        libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0x40243000)
        /lib/ld-linux.so.2 (0x80000000)


I'd like to understand exactly how you got a readline that's missing
that particular function, it's really odd.

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/
-~----------~----~----~----~------~----~------~--~---

Reply via email to