On Sun, May 12, 2013 at 4:49 PM, Raymond Hettinger <
raymond.hettin...@gmail.com> wrote:

>
> * will enums break doctests or any existing user code
>

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.

This sounds like a feature request for doctest.  doctest could be educated
about enums and automatically compare to the integer value for such cases.

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.

-gps
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to