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

Walter Dörwald walter@livinglogic...
Thu May 17 16:39:56 CDT 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!

Servus,
    Walter


More information about the IPython-dev mailing list