Python: autocomplete names with tab key [solved]

I learned a python trick that saved me a lot of time when using the interpreter. Just wanted to share it with you.

>>> import rlcompleter, readline
>>> readline.parse_and_bind("tab:complete")

With the above lines you’ll have a unix-like autocomplete for functions. For instance, if you type

>>> import os
>>> os.

And then you press “TAB” the list of OS module functions will show up. Ain’t it AWESOME? :>

Related posts:

  1. CDS-Invenio: remove fulltext tab from HTML detailed
  2. Python & Oracle [SOLVED] ImportError: libclntsh.so.11.1: wrong ELF class: ELFCLASS32
  3. Python: how do I check the variable type? [solved]
  4. [Errno 13] Permission denied: ‘/root/.python-eggs’ [SOLVED]
  5. CDS-Invenio: implementing autocomplete for authors with jQuery and php [SOLVED]

Leave a Reply

Paypal donate

Please help me keep this blog up by donating.

Por favor, ayúdame a continuar con el blog donando.