[issue33395] TypeError: unhashable type: 'instancemethod'
R. David Murray
report at bugs.python.org
Tue May 1 12:42:17 EDT 2018
R. David Murray <rdmurray at bitdance.com> added the comment:
Functions/methods should be immutable, so yes, I think it is a safe assumption that they should be hashable, and a bug if they are not. I seem to vaguely recall that there is some other part of the cpython machinery that depend on being able to test function/method equality and assumes that they are immutable, which implies they should be hashable.
I'll close this; Christian can reopen it if he thinks there is an actual bug lurking here.
----------
resolution: -> third party
stage: -> resolved
status: open -> closed
type: crash -> behavior
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33395>
_______________________________________
More information about the Python-bugs-list
mailing list