<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Sun, May 12, 2013 at 4:49 PM, Raymond Hettinger <span dir="ltr"><<a href="mailto:raymond.hettinger@gmail.com" target="_blank">raymond.hettinger@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
* will enums break doctests or any existing user code<br></blockquote><div><br></div><div style>Those are already broken by design.  We shouldn't be limited just because someone wrote a bad test that assumed a particular repr of a value.  We've already broken that assumption several times in the past from the recent hash randomization change to removing the evil trailing Ls on the old long type, changing the float str vs repr, particular information and wording of exception error messages, etc.</div>

<div style><br></div><div style>This sounds like a feature request for doctest.  doctest could be educated about enums and automatically compare to the integer value for such cases.</div></div><br></div><div class="gmail_extra" style>

Regardless, it sounds like the consensus agrees with your overall sentiment: refrain from mass converting things "just because" and start with an obvious improvement like the socket module.</div><div class="gmail_extra" style>

<br></div><div class="gmail_extra" style>-gps</div></div>