[Python-ideas] Naming convention for Enums

Steven D'Aprano steve at pearwood.info
Thu Sep 15 13:03:43 EDT 2016


On Wed, Sep 14, 2016 at 09:51:32PM +1000, Chris Angelico wrote:

> Perhaps the advice needs to be along the lines of: Decide what the
> purpose of the enum is, and follow a naming convention accordingly.
> Uppercase if you're basically making constants; lowercase if you're
> not; etcetera.

I can't think of any situation where Enums would *not* be treated as 
constants. Can you give an example?


-- 
Steve


More information about the Python-ideas mailing list