Ide with Autocompletion (newbie)

Raseliarison nirinA nirina at mail.blueline.mg
Thu May 29 12:32:47 EDT 2003


"Igor Secansky" writes:

> Hi,
>
> I have it (IDLE) on Win2k.
> Colors are not bad there, but autocompletion doesn't seem to work:

>Do You have it in Your version?

yes, under GNU/Linux of course, as it uses the GNU readline 

    Python 2.2.1 (#1, Jun 30 2002, 03:02:53)
    [GCC 3.0.2] on linux2
    Type "copyright", "credits" or "license" for more information.
    IDLE 0.8 -- press F1 for help
    >>> import rlcompleter
    >>> dir(rlcompleter)
    ['Completer', '__all__', '__builtin__', '__builtins__', '__doc__',
'__file__', '__main__', '__name__', 'get_class_members', 'readline']
    >>> dir(rlcompleter.readline)
    ['__doc__', '__file__', '__name__', 'add_history', 'get_begidx',
'get_completer_delims', 'get_endidx', 'get_history_length',
'get_line_buffer', 'insert_text',
    'parse_and_bind', 'read_history_file', 'read_init_file',
'set_completer', 'set_completer_delims', 'set_history_length',
'set_startup_hook', 'write_history_file']
    >>> print rlcompleter.readline.__doc__
    Importing this module enables command line editing using GNU readline.
    >>> import readline
    >>> help(readline)
    Help on module readline:

    NAME
        readline - Importing this module enables command line editing using
GNU readline.

    FILE
        /usr/local/lib/python2.2/lib-dynload/readline.so
...

> nice day
> Igor
>

nirinA
--







More information about the Python-list mailing list