summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-09-26 22:04:56 (GMT)
committerGuido van Rossum <guido@python.org>1997-09-26 22:04:56 (GMT)
commit2781fbe46c7f8d8e391c3f3f3e8692b451e6142f (patch)
tree50686fded5e2294f3b68154e6b37f43bfe4853e3 /Modules
parent290900a5d76a5d9763bc1d1bb228845cda5754fa (diff)
downloadcpython-2781fbe46c7f8d8e391c3f3f3e8692b451e6142f.zip
cpython-2781fbe46c7f8d8e391c3f3f3e8692b451e6142f.tar.gz
cpython-2781fbe46c7f8d8e391c3f3f3e8692b451e6142f.tar.bz2
Word completion for the new readline.set_completer() function.
When completing a simple identifier, it completes keywords, built-ins and globals in __main__; when completing NAME.NAME..., it evaluates (!) the expression up to the last dot and completes its attributes. It's very cool to do "import string" type "string.", hit the completion key (twice), and see the list of names defined by the string module! Tip: to use the tab key as the completion key, call readline.parse_and_bind("tab: complete")
Diffstat (limited to 'Modules')
0 files changed, 0 insertions, 0 deletions