On Mon, 15 Mar 2021 at 20:49, Ethan Furman <[email protected]> wrote: > Everything considered, I think I like allowing `__contains__` to verify both > names and values
What about Enum.values()? > adding `default=<sentinel>` to the constructor for the value-based "gimme an > Enum or None" case What's the use case, apart checking if the value is a "member" of the enum? _______________________________________________ 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/QMCYEAAZ3UELOL5G3T2T3G72KVKNAJV3/ Code of Conduct: http://python.org/psf/codeofconduct/
