Para ter autocomplete no shell interativo do Python
(em Linux) basta criar um arquivo .pythonrc com o
seguinte conteúdo no diretório home do usuário
[code]
# ~/.pythonrc
# enable syntax completion
try:
import readline
except ImportError:
print "Module readline not available."
else:
import rlcompleter
readline.parse_and_bind("tab: complete")
[/code]
...e exportar uma variável de ambiente
PYTHONSTARTUP=~/.pythonrc
Deve ter outras maneiras de fazer, e até de incluir
este recurso noutros editores.
Fonte: http://www.razorvine.net/blog/user/irmen/article/2004-11-22/17
Atts.
--
MARCELO F ANDRADE
Belem, Amazonia, Brazil
"I took the red pill"