[Python-Dev] Enumeration item arguments? (original) (raw)
Barry Warsaw barry at python.org
Tue Apr 30 05:47:01 CEST 2013
- Previous message: [Python-Dev] Enumeration item arguments?
- Next message: [Python-Dev] Enumeration items: mixed types?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] Enumeration item arguments?
- Next message: [Python-Dev] Enumeration items: mixed types?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]