Looking up helped.
Just need to have a file called .pythonrc in your home directory containing the following:
#!/usr/bin/python
import os
import sys
try:
import readline
except ImportError:
print "Module readline not available."
else:
import rlcompleter
readline.parse_and_bind("tab: complete")
Apparently, that was not enough. I also needed to add the following line to my .bashrc file (in my home directory again).
export PYTHONSTARTUP=~/.pythonrc
That's all. Open a new shell and start the python shell.
And enjoy auto-completion!
13 comments:
Or you can use ipython. :-)
Thank you for the tip =).
We have enabled this in Mandriva by default without people complaining since some years, so I think this would be safe and useful to be enabled on fedora ( and in other distribution too ).
It is by default there in openSuse
Why not convince upstream python to include this as a default so that its expected behavior for everyone? Then there isnt a patchwork of expected behavior, which is the current situation.
https://bugzilla.redhat.com/show_bug.cgi?id=518653
It appears that you’ve put a solid amount of effort into your article and I want to see a lot more of these on the Internet these days. I really got a quetch out of your post. I do not have a bunch to to say in reply, I only wanted to register to say great work.
We buy Any Car
Just studying python at cambridge so thanks for the info.
buy my car
We have enabled this in Mandriva by default, love python !
sell my car
just use ipython in future.
Manchester block paving
Thanks for the tips about Auto compilation. Keep going. I follow you.
usedcarsforsale
I really liked your article. Keep up the good work.I love extreme bondage sex
I was interested know about it lesbian bondage
Post a Comment