.pythonrc file that adds command history and tab completion to my python shell.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
|Save this file and add the following line to your ~/.bashrc"|
|history_file = os.path.join(os.environ['HOME'], '.python_history')|
|del readline, rlcompleter, atexit, history_file|
|# In addition to os, import some useful things:|
|from collections import *|
|from itertools import *|