[Python-Dev] constant/enum type in stdlib

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Nov 24 00:32:39 CET 2010


Antoine Pitrou wrote:

> I think that asking for too many features would get in the way, and also
> make the API quite un-Pythonic. If you want your values to be e.g.
> OR'able, just choose your values wisely ;)

On the other hand it could be useful to have an easy way to
request power-of-2 value assignment, seeing as it's another
common pattern.

-- 
Greg


More information about the Python-Dev mailing list