This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients christian.heimes, r.david.murray, siming85
Date 2018-05-01.16:42:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1525192937.88.0.682650639539.issue33395@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-05-01 16:42:17r.david.murraysetrecipients: + r.david.murray, christian.heimes, siming85
2018-05-01 16:42:17r.david.murraysetmessageid: <1525192937.88.0.682650639539.issue33395@psf.upfronthosting.co.za>
2018-05-01 16:42:17r.david.murraylinkissue33395 messages
2018-05-01 16:42:17r.david.murraycreate