Comparing Python enums to Java, was: How much sanity checking is required for function inputs?
Ethan Furman
ethan at stoneleaf.us
Sun Apr 24 14:12:40 EDT 2016
On 04/24/2016 09:47 AM, Chris Angelico wrote:
> I would normally expect enumerated values to be immutable and
> hashable, but that isn't actually required by the code AIUI. Under
> what circumstances is it useful to have mutable enum values?
Values can be anything. The names are immutable and hashable.
--
~Ethan~
More information about the Python-list
mailing list