PEP 354: Enumerations in Python

Paul Rubin http
Mon Feb 27 05:42:51 EST 2006


Felipe Almeida Lessa <felipe.lessa at gmail.com> writes:
> >     print_members('shorter:', months_shorter_than_february)
> >     print_members('longer:', months_longer_than_february)
> 
> IMHO, you should be using sets, not enums. Something like:

If enums aren't supposed to work in that construction then the PEP
shouldn't specify that they work that way.



More information about the Python-list mailing list