[issue17959] Alternate approach to aliasing for PEP 435
Nick Coghlan
report at bugs.python.org
Sun May 12 09:56:05 CEST 2013
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 <report at bugs.python.org>
<http://bugs.python.org/issue17959>
_______________________________________
More information about the Python-bugs-list
mailing list