should i switch to IPYTHON interpreter? What is the killer feature of it?
дамјан г.
mk at net.mail.penguinista
Wed Dec 10 11:17:35 EST 2003
>>>>Tab completion for keywords and methods etc (you can get this in the
>>>>standard python shell as well of course)
>>>
>>>You can? How?
>>
>> Press tab after typing part of the keyword/method.
>
> Sean was talking about the 'standard python shell' so I tried
> the default python (2.3) on my mandrake 9.2 box.
> It doesn't work, it just inserts a tab character.
Put this in ~/.pythonrc, and setup the PYTHONSTARTUP environment variable to
point to it: export PYTHONSTARTUP=~/.pythonrc
# ~/.pythonrc
# enable syntax completion
try:
import readline
except ImportError:
print "Module readline not available."
else:
import rlcompleter
readline.parse_and_bind("tab: complete")
--
Дамјан (jabberID:damjan at bagra.net.mk)
I believe the technical term is "Oops!"
More information about the Python-list
mailing list