[IPython-dev] patch to fix typo bug in ipipe

Walter Dörwald walter at livinglogic.de
Thu May 17 17:39:56 EDT 2007

Paul Mueller wrote:
> Hi,
> I happened to find a small bug in ipipe.py (line 1183):
>     if mode == "cell" or mode in "header" or mode == "footer":
>                               ^^
> Using "mode in" on a string has to be a mistake, since mode is used as
> an enum and this is the only place in the file it's compared this way.

You're right. The bug is fixed now in r2360.

> I've attached a patch to change "in" to "==".

Thanks for the bug report!


More information about the IPython-dev mailing list