Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Tab completing re.search objects crashes IPython #320
When tab completing a the result of a re.search it crashes my ipython session (example below).
Python verison: 2.6.1
I can't replicate this with any version of IPython (same Python and OSX).
Do you have readline installed, or does IPython give a 'leopard libedit detected' warning on startup?
If it is using libedit, it is highly recommended that you install readline with:
Tab completion and history are much better behaved after you do that (the libedit warning will no longer appear if IPython finds proper readline).
By the way, Thomas: while it's true that we want to make ip as robust as possible, tab completion is one of those places where there's not much we can do. If readline/libedit segfaults in the middle of the completion code, ipython can't protect against that.
It seems in this case the problem is libedit, but in the past I've seen (and reported) similar crashes coming from Python's readline itself.
It's fine to leave this one closed as it's not within our power to fix, unfortunately.
On Mon, Mar 28, 2011 at 1:07 PM, takluyver
Not really: the code that segfaults is automatically called by libedit
Short of disabling tab completion altogether, there's no way for us to