sudo vim /usr/lib/python2.7/site-packages/tab.py
[kaiz@host-wk site-packages]$ cat tab.py
import readline
import rlcompleter
import atexit
import os
# tab completion
readline.parse_and_bind('tab:complete')
# history file
histfile = os.path.join(os.environ['HOME'],'.pythonhistory')
try:
readline.read_history_file(histfile)
except IOError:
pass
atexit.register(readline.write_history_file, histfile)
Python 2.7.5 (default, Nov 6 2016, 00:28:07)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import tab