A .pythonrc file is executed when the Python interactive shell is started, if
$PYTHONSTARTUP is in your environment and points to this file. In order for the Python shell to run your pythonrc.py file on startup you need to set the PYTHONSTARTUP environment variable. Place the following line in one of your shell startup files:
---> The rlcompleter module defines a completion function suitable for the readline module by completing valid Python identifiers and keywords, rlcompleter adds tab-completion for Python symbols to the interactive interpreter. Importing the module causes it to configure a completer function for readline. The only other step required is to configure the tab key to trigger the completer. Simply put this module provides word completion for python keywords, identifiers using the tab key.
binds the tab key on your keyboard so you can hit tab for auto-completion of python keywords, identifiers, a standard feature found in almost all IDEs.