[New-bugs-announce] [issue28842] PyInstanceMethod_Type isn't hashable

David Wolever report at bugs.python.org
Wed Nov 30 13:26:34 EST 2016


New submission from David Wolever:

The PyInstanceMethod_Type, unlike all other method types, isn't hashable.

It seems like the code exists, it's just been commented out: https://github.com/python/cpython/blame/c30098c8c6014f3340a369a31df9c74bdbacc269/Objects/classobject.c#L569

This came up here: https://github.com/wolever/pprintpp/issues/18

And Christian Heimes doesn't remember why it was commented out: https://twitter.com/ChristianHeimes/status/803900655324790784

----------
messages: 282091
nosy: wolever
priority: normal
severity: normal
status: open
title: PyInstanceMethod_Type isn't hashable
type: behavior
versions: Python 3.3, Python 3.4, Python 3.5, Python 3.6, Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28842>
_______________________________________


More information about the New-bugs-announce mailing list