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