Nick Coghlan added the comment:

That's a terrible way to express aliasing, because it's really unclear that 
"rectangle" is the canonical name.

By contrast:

  class Shape(Enum):
    rectangle = 2
    oblong = rectangle

leaves no doubt as to which is canonical and which is the alias. You never need 
to go beyond two assignments, as you can still use multiple target assignment 
for the aliases.

----------

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

Reply via email to