[issue33395] TypeError: unhashable type: 'instancemethod'

Siming Yuan report at bugs.python.org
Tue May 1 11:57:50 EDT 2018


Siming Yuan <siming85 at gmail.com> added the comment:

i just discovered cython v0.28 no longer creates instancemethod, so this bug should technically no longer show up after upgrading cython.
(related cython bug https://github.com/cython/cython/pull/2105)

so the question remains - is it a good idea to assume all type(obj).__repr__ is hashable?

if so, we can close this bug.

----------

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


More information about the Python-bugs-list mailing list