Message349325
Usually, setting hash to None is the proper way to turn-off hashability. And it's possible that existing code has subclassed Number and provided other methods but not __hash__, so this could potentially break their code. On the other hand, it would be desirable to prevent instantiation, perhaps using some other mechanism would be better. I'll take a deeper look at this when I get a chance. |
|
Date |
User |
Action |
Args |
2019-08-10 02:36:54 | rhettinger | set | recipients:
+ rhettinger, ncoghlan, belopolsky, eric.araujo, Claudiu.Popa, berker.peksag, CuriousLearner |
2019-08-10 02:36:54 | rhettinger | set | messageid: <1565404614.85.0.739221803551.issue16837@roundup.psfhosted.org> |
2019-08-10 02:36:54 | rhettinger | link | issue16837 messages |
2019-08-10 02:36:54 | rhettinger | create | |
|