Closed GoogleCodeExporter closed 9 years ago
Confirmed with Python 2.7.
Original comment by useboxnet
on 26 Sep 2013 at 5:18
This happens because your `banana` is a bound method, with a function it works
properly.
frame[name] is handler, frame[name] == handler
In func is True, True, in a bound method is False, True.
Using a static method for your banana you'll get the desired effect (it's just
a function).
I can't see a good reason to use "is" instead of "==".
Original comment by useboxnet
on 26 Sep 2013 at 5:31
This issue was closed by revision 6c4ce5fb7198.
Original comment by useboxnet
on 26 Sep 2013 at 5:35
Original issue reported on code.google.com by
running....@gmail.com
on 25 Sep 2013 at 10:59