[issue33395] TypeError: unhashable type: 'instancemethod'

R. David Murray report at bugs.python.org
Tue May 1 09:59:29 EDT 2018


R. David Murray <rdmurray at bitdance.com> added the comment:

Ah, in the absence of a traceback I think I misunderstood the problem (I failed to actually look at the code :)

Given what you say about the slotwrapper, I'm not sure, but I'm guessing that that means cython isn't using the PyInstanceMethod_Type as intended.  That doesn't mean it can't be fixed (though if true it makes it less likely that we'll fix it, unfortunately), but you'll have to figure out what the difference is between how it is used by cython and cpython.  I've nosied Christian, maybe he'll remember why the hash is commented out.

----------
nosy: +christian.heimes

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33395>
_______________________________________


More information about the Python-bugs-list mailing list