[IronPython] Re: A little bug about "in" operator
Timothy Fitz
firemoth at gmail.com
Wed Oct 20 15:08:22 PDT 2004
> Unfortunately, this leads to the conclusion that the fallback code
> here isn't working. On further inspection, Ops.Equal is returning
> Ops.NotImplemented, which is actually a string. A string tests true.
> The ISequence fix rids you of the tuple problem, however A:
> Ops.NotImplemented should be a class, and B: IntOps.Equals should
> handle the string case in some way or another.
P.S. Anything wrong with solving A via changing
public static object NotImplemented = "<NotImplemented>"; //!!! need
really singleton objects
to
public static object NotImplemented = new
PythonExceptionNew("<NotImplemented>");
?
More information about the users-ironpython.com
mailing list