Hidden features of Python
stackoverflow.com
stackoverflow.com
1.
from __future__ import braces
Use {} to delimit scope!2.
try:
import readline
except ImportError:
print "Unable to load readline module."
else:
import rlcompleter
readline.parse_and_bind("tab: complete")
Used to use [tab]-completion in terminal. One could correctly argue that using iPython would be smarter.. but sometime you are working remotely and don't want to get out of the terminal and install, etc. >>> from __future__ import braces
File "<stdin>", line 1
SyntaxError: not a chance