2

Resolved

TypeError: instancemethod.__cmp__(x,y) requires y to be a 'instancemethod', not a ...

description

hi,

I have spotted something, what I believe is a bug.
If I try the following:

object.str in (None ,object.str)

it throws:
TypeError: instancemethod.__cmp__(x,y) requires y to be a 'instancemethod', not a NoneType

where I would expect it to give me back True.
I also checked cpython on linux. It does return True as expected.

In my case problem is triggered in ipython. There is also a chance to get epydoc working: https://groups.google.com/forum/#!msg/ironpy/302dLUZuC4k/8z9D3avvhpoJ

Cheers,
Pawel

comments

jdhardy wrote May 11 at 6:22 AM

Fixed in 1f4c7ee.