Message403103
[Eric]
> I agree that there's no good way of telling if an
> arbitrary class is immutable, so I'm not sure we can
> do anything here.
Consider using non-hashability as a proxy indicator for immutability.
- isinstance(f.default, (list, dict, set))
+ f.default.__hash__ is None
While this is imperfect, it would be more reliable than what we have now. |
|
Date |
User |
Action |
Args |
2021-10-03 17:50:13 | rhettinger | set | recipients:
+ rhettinger, eric.smith, CCLDArjun, gianni |
2021-10-03 17:50:13 | rhettinger | set | messageid: <1633283413.69.0.688225883375.issue44674@roundup.psfhosted.org> |
2021-10-03 17:50:13 | rhettinger | link | issue44674 messages |
2021-10-03 17:50:13 | rhettinger | create | |
|