<div dir="ltr">On Fri, Apr 12, 2013 at 9:30 AM, Barry Warsaw <span dir="ltr"><<a href="mailto:barry@python.org" target="_blank">barry@python.org</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Apr 12, 2013, at 09:03 AM, Michael Urman wrote:<br>>(For the latter behavior, would adding DupEnum.name2 = DupEnum.name1 after<br>
</div><div class="im">
>the class declaration work today?)<br>
<br>
</div>Yes, but the repr/str of the alias will show the original value.<br></blockquote><div> </div><div style>That satisfies my concern. This gives an author the means to provide two names for a single value, and a way to choose which one is canonical. It's easy to imagine some corner cases related to persisting those values and then retrieving them with a later enum definition that changes the canonical name, but if you store raw values or names it should be easy enough to work around such things.</div>
<div style><br></div><div style>Michael</div></div></div></div>