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

Barry Warsaw barry at python.org
Tue Nov 23 20:40:45 CET 2010


On Nov 23, 2010, at 12:57 PM, Fred Drake wrote:

From a backward-compatibility perspective, what makes sense depends on whether they're used to implement existing constants (socket.AFINET, etc.) or if they reserved for new features only.

As is usually the case, there's little reason to change existing working code. Enums can be used whenever a module or API is updated.

-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/c0ddd710/attachment.pgp>



More information about the Python-Dev mailing list