pyreadline, InteractiveConsole, and tab completion on Windows

T

Thomas Heller

I have installed pyreadline, and get nice tab completion in
the normal interactive interpreter:

<snip>
Python 2.4.4 (#71, Oct 18 2006, 08:34:43) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.and oct UserWarning ArithmeticError
assert SystemExit filter str
break StandardError range property
[...]sys.__displayhook__ sys.call_tracing sys.getfilesystemencoding sys.ps1
sys.__doc__ sys.callstats sys.getrecursionlimit sys.ps2
[...]</snip>

However, in 'code.interact()', the behaviour is different. Hitting TAB
at the top level works as before, but hitting TAB after entering 'sys.' for example
doesn't show any completions:

<snip>
Python 2.4.4 (#71, Oct 18 2006, 08:34:43) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.Python 2.4.4 (#71, Oct 18 2006, 08:34:43) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)and oct UserWarning ArithmeticError
assert SystemExit filter str
break StandardError range property
[...]</snip>

How can I get the same tab-completion?

Thanks,
Thomas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,197
Latest member
Sean29G025

Latest Threads

Top