[IPython-dev] [Pythonmac-SIG] readline support for OS X Leopard
Boyd Waters
bwaters@nrao....
Wed Oct 31 15:03:36 CDT 2007
On Oct 31, 2007, at 11:43 AM, Boyd Waters wrote:
> What I am doing at the moment is hard-coding the mapping of the tab-
> completion as a special case in IPython's rilneimpl.py
My iplib.py patch was broken, as I had used a dirty local copy of the
subversion repository to generate the patch.
Very sorry.
Here are the patches that implement my Leopard EditLine hack against
IPython-SVN (2007-10-30)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rlineimpl.py.patch
Type: application/octet-stream
Size: 846 bytes
Desc: not available
Url : http://lists.ipython.scipy.org/pipermail/ipython-dev/attachments/20071031/9709000b/attachment.obj
-------------- next part --------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: iplib.py.patch
Type: application/octet-stream
Size: 1189 bytes
Desc: not available
Url : http://lists.ipython.scipy.org/pipermail/ipython-dev/attachments/20071031/9709000b/attachment-0001.obj
-------------- next part --------------
I tested this process with a MacPorts port; here is that portfile:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Portfile
Type: application/octet-stream
Size: 1267 bytes
Desc: not available
Url : http://lists.ipython.scipy.org/pipermail/ipython-dev/attachments/20071031/9709000b/attachment-0002.obj
-------------- next part --------------
Perhaps if I learn more about the IPython prefs system I can generate
a better patch in iplib,py
Right now this patch simply tells IPython to ignore any key-binding
lines that are in ipythonrc if we are running a Python that uses
EditLine instead of GNU readline. The rlineimpl.py patch figures out
if we are running against EditLine, and if so it binds the completion
function to the tab key.
This isn't great but it gets a part of my job done.
- boyd
Boyd Waters
National Radio Astronomy Observatory
Socorro, New Mexico
http://www.aoc.nrao.edu/~bwaters
More information about the IPython-dev
mailing list