<div dir="ltr">On Wed, Feb 13, 2013 at 7:09 PM, Brett Cannon <span dir="ltr"><<a href="mailto:brett@python.org" target="_blank">brett@python.org</a>></span> wrote:<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 dir="ltr"><div class="gmail_extra">Or just a function idiom. We don't have to support the class-based definition style either. <br></div></div>
</blockquote></div><br></div><div class="gmail_extra" style>Well, namedtuple has an enum for tuple indexes. I think we should be consistent which entails:</div><div class="gmail_extra" style><br></div><div class="gmail_extra" style>
Colors = collections.enum('RED GREEN BLUE')</div><div class="gmail_extra" style><br></div><div class="gmail_extra" style><br></div><div class="gmail_extra" style>Cheers,</div><div class="gmail_extra" style><br></div>
<div class="gmail_extra" style>Yuval</div></div>