[Python-Dev] Enumeration item arguments?

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Apr 30 02:32:28 CEST 2013


Eli Bendersky wrote:
> Besides, did we not agree that the only acceptable *members* for enums 
> are going to be descriptors?

No, that only applies to names assigned in the class body.
Here, mass and radius are being set a different way, so
there is no restriction on them.

-- 
Greg


More information about the Python-Dev mailing list