[New-bugs-announce] [issue5845] rlcompleter should be enabled automatically

Cherniavsky Beni report at bugs.python.org
Sun Apr 26 01:27:19 CEST 2009

New submission from Cherniavsky Beni <cben at users.sf.net>:

An interactive prompt should offer working completion out-of-the-box,
without requiring every Python user on earth to create a $PYTHONSTARTUP
with '''import readline; readline.parse_and_bind("tab: complete")'''.

Note that it should work not only when Python is run without arguments,
but also when running with the -i option.
And ideally, it should only install the completion function when
dropping to the interpreter, not from the start, so that code that runs
before dropping to the interpreter is not affected.  But this is really
not important.

Safety: if 'rlcompleter' or 'readline' are not availiable (e.g. broken
python install), the user must still get a working interpreter, just
without completion.

Portability: there won't be completion on windows (as long as pyreadline
or similar is not part of Python).  But that shouldn't delay unix support!

messages: 86570
nosy: cben
severity: normal
status: open
title: rlcompleter should be enabled automatically

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list