On 9/10/21 4:19 AM, matt...@matthewstocks.co.uk 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 -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/E26WSI2R7EGYJMLGZC2DA2J2KBND2LXC/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to