Python auto complete in OSX
By Rayed
If you run Python shell in OSX you notice the auto completion functionality isn’t working, this is caused by Apple decision not to ship GNU readline and instead they use libedit (BSD license), to fix the problem I used the following snippet:
import readline import rlcompleter if ’libedit’ in readline.doc: readline.parse_and_bind(“bind ^I rl_complete”) else: readline.parse_and_bind(“tab: complete”)