Antoine Rozo wrote: > Le sam. 26 oct. 2019 à 13:15, Steve Jorgensen [email protected] a écrit : > > What if, for a particular Enum, I would > > like to be able to use () as a > > shorthand for auto()? How about a more complex auto-generation that > > determines the final value based on both the given value and the name/key > > What if I want to set my enum item to an empty tuple? > Antoine Rozo
"What if, for a particular Enum, …" I'm not proposing something that would change any existing behavior of `Enum` classes. I'm proposing additional flexibility in controlling the behavior of specific custom `Enum` subclasses. _______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/MHK3K543TOD5XHBPLM625N6FQF265M5C/ Code of Conduct: http://python.org/psf/codeofconduct/
