[OS X 10.5] hitting TAB inserts ./ in interactive mode ?
Lawrence D'Oliveiro
ldo at geek-central.gen.new_zealand
Sat Sep 18 04:04:21 EDT 2010
In message <mailman.850.1284782522.29448.python-list at python.org>, Ned Deily
wrote:
> try:
> import readline
> except ImportError:
> print("Module readline not available.")
> else:
> import rlcompleter
> readline.parse_and_bind("tab: complete")
>
> Note the print() form which works with either Python 2 or 3.
You should be writing diagnostics to stderr, not stdout.
More information about the Python-list
mailing list