On Sat, 21 Feb 2015 21:28:21 +0200
Serhiy Storchaka <storch...@gmail.com> wrote:

> /* Namespaces are one honking great idea -- let's do more of those! */
> 
> There are two ways to avoid name conflicts: prefixes and namespaces. 
> Programming languages that lacks namespaces (such as C) need to use 
> prefixes. For example: PROTOCOL_SSLv2, PROTOCOL_SSLv3, PROTOCOL_SSLv23. 
> Python used the same prefixed names when reflect C constants to module 
> level Python globals.

Python still uses the names, and they are still globals. There's no
reason to change that. The enum is simply there to improve debugging
when printing the values.

Regards

Antoine.


_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to