[Python-Dev] Enumeration item arguments? (original) (raw)

Barry Warsaw barry at python.org
Tue Apr 30 05:47:01 CEST 2013


On Apr 29, 2013, at 03:25 PM, Eli Bendersky wrote:

I'm -1, and this is yet another bad sign of conflating enums with classes. If planets want to have attributes and behaviors, let them be normal classes. If they want a PlanetId enum member, that's OK, but there's no need to intermix the two.

I agree with this.

-Barry



More information about the Python-Dev mailing list