Tab-completion in tutorial

Steven D'Aprano steve+comp.lang.python at pearwood.info
Sat Jan 21 05:07:04 EST 2012


I'm reading the part of the tutorial that talks about tab-completion, and 
I think the docs are wrong.

http://docs.python.org/tutorial/interactive.html#key-bindings

The "more capable startup file" example given claims:

# Add auto-completion and a stored history file of commands to your Python
# interactive interpreter. Requires Python 2.0+, readline. Autocomplete is
# bound to the Esc key by default (you can change it - see readline docs).

but I have tried it, and it doesn't seem to actually bind autocomplete to 
anything.

Is this a documentation bug, or am I doing something wrong?



-- 
Steven



More information about the Python-list mailing list