Nick Coghlan added the comment:

You don't generally see reversals of decisions where Guido has made an explicit 
choice based on consistency with the rest of the language. The fact that 
aliases are permitted in enumerations by default is consistent with the normal 
behaviour of namespaces and dictionaries in general, so providing a way to opt 
in to the stricter checks is a better solution.

The idea of passing flags or other configuration options to the metaclass is 
also rather ugly. Offering permissive behaviour by default with an easy way to 
opt in to additional restrictions is far more in keeping with the general 
"consenting adults" ethos of the language.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18042>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to