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 rhettinger
Recipients CCLDArjun, eric.smith, gianni, rhettinger
Date 2021-10-03.17:50:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> 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:13rhettingersetrecipients: + rhettinger, eric.smith, CCLDArjun, gianni
2021-10-03 17:50:13rhettingersetmessageid: <>
2021-10-03 17:50:13rhettingerlinkissue44674 messages
2021-10-03 17:50:13rhettingercreate