Message316004
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. |
|
Date |
User |
Action |
Args |
2018-05-01 16:42:17 | r.david.murray | set | recipients:
+ r.david.murray, christian.heimes, siming85 |
2018-05-01 16:42:17 | r.david.murray | set | messageid: <1525192937.88.0.682650639539.issue33395@psf.upfronthosting.co.za> |
2018-05-01 16:42:17 | r.david.murray | link | issue33395 messages |
2018-05-01 16:42:17 | r.david.murray | create | |
|