<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, May 2, 2013 at 8:54 AM, Barry Warsaw <span dir="ltr"><<a href="mailto:barry@python.org" target="_blank">barry@python.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On May 01, 2013, at 03:11 PM, Ethan Furman wrote:<br>
<br>
>The reason __int__ is there is because pure Enums should be using plain ints<br>
>as their value 95% or more of the time, and being able to easily convert to a<br>
>real int for either database storage, wire transmission, or C functions is a<br>
>Good Thing.<br>
<br>
</div>But then, Foo.a.value is good enough.<br></blockquote><div><br></div><div>__int__ is out of Enum, Barry. You're preaching to the choir now ;-)<br><br>Eli<br> <br></div></div><br></div></div>