<home> <personal> <hacks> <links> <quotes> <details> <summaries>
~mwh/hacks: <bytecodehacks> <PPY> <xmms-py> <pyicqlib> <pyrepl>
For ages now, I've been working on and off on a replacement for readline for use from Python. readline is undoubtedly great, but a couple of things irritate me about it. One is the inability to do sane multi-line editing. Have you ever typed something like:
>>> for i in range(10): ... for i in range(10): ... print i*j
into a Python top-level? Grr, that "i" on the second line should have been a "j". Wouldn't it be nice if you could just press "up" on your keyboard and fix it? This was one of the aims I kept in mind when writing pyrepl (or pyrl as I used to call it, but that name's taken).
IMHO, the best way to get a feel for how it works is to type
$ python pythoni
and just play around. If you're used to readline's emacs-mode, you should feel right at home. One point that might confuse: because the arrow keys are used to move up and down in the command currently being edited, you need to use ^P and ^N to move through the history.
PyRepl development happens on its pages at codespeak.net>.
<home> <personal> <hacks> <links> <quotes> <details> <summaries>Last updated: $Date: 2002/12/12 11:47:57 $. Comments to firstname.lastname@example.org.