[Python-Dev] constant/enum type in stdlib (original) (raw)

Barry Warsaw barry at python.org
Tue Nov 23 17:31:27 CET 2010


On Nov 23, 2010, at 03:15 PM, Michael Foord wrote:

(Well, there is a third option that takes name and sets the constants in the module automagically. I can understand why people would dislike that though.)

Personally, I think if you want that, then the explicit class definition is a better way to go.

-Barry

-------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: not available URL: <http://mail.python.org/pipermail/python-dev/attachments/20101123/505afe5d/attachment.pgp>



More information about the Python-Dev mailing list