On 9/10/21 4:19 AM, [email protected] wrote:

> My proposal is that iterating through a member of a Flag enum will return all 
the constituent members.

It's a good proposal, and is already in 3.11.  If you want the functionality 
now you can use the aenum [0] library.

--
~Ethan~


[0] https://pypi.org/project/aenum/
_______________________________________________
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/E26WSI2R7EGYJMLGZC2DA2J2KBND2LXC/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to