should i switch to IPYTHON interpreter? What is the killer feature of it?
Tim Golden
tim.golden at viacom-outdoor.co.uk
Thu Dec 11 04:32:46 EST 2003
"Gary Bishop" <gb at cs.unc.edu> wrote in message news:<3fd7ca1c_3 at news.unc.edu>...
> ?????? ?. <mk at net.mail.penguinista> wrote:
> > # ~/.pythonrc
> > # enable syntax completion
> > try:
> > import readline
> > except ImportError:
> > print "Module readline not available."
> > else:
> > import rlcompleter
> > readline.parse_and_bind("tab: complete")
>
> This will work on win32 as well if you download ctypes and then my
> python implementation of gnu readline from
>
> http://prdownloads.sourceforge.net/uncpythontools/readline-1.1.zip?download
Brilliant! Thank you very much indeed.
I would add a warning for those Windows users who aren't also Linux
users: by default you'll need to use Ctrl-D to exit the interpreter
rather than Ctrl-Z. (I imagine this could be changed; I've given the
source no more than a cursory glance).
TJG
More information about the Python-list
mailing list