[IPython-dev] breaking readline

Fernando Perez fperez.net at gmail.com
Sun Mar 18 22:54:17 EDT 2007

On 11/4/06, Alan Trick <alantrick at gmail.com> wrote:
> Hi
> I'm trying to create a wrapper for sys.stdout. I have some code (link at
> bottom) and it works fine on the standards python console, but not so
> well in ipython. In ipython it breaks readline so you end up seeing a
> lot of weird charachters and certain keys stop working. It works fine in
> code.InteractiveConsole. Anyone know what ipython is doing to cause
> this.
> n.b. I know my code has issues, like using open('/dev/stdout') and a few
> other thing, but as it is it *should* work. It's mostly a proof off
> concept
> Link:
> http://terminate.svn.sourceforge.net/viewvc/terminate/trunk/terminate/wrapper.py?revision=68&view=markup

Sorry this fell through the cracks.  This link doesn't work anymore so
I can't really look.  But basically anything that breaks readline is
going to seriously munge ipython, since it relies so strongly on
readline.  As to /why/ readline breaks, I honestly don't know.



More information about the IPython-dev mailing list