Author ethan.furman
Recipients amaury.forgeotdarc, barry, eli.bendersky, eric.snow, ethan.furman, ezio.melotti, gvanrossum, ncoghlan, pitrou, rhettinger
Date 2013-06-22.05:08:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <51C53141.4010105@stoneleaf.us>
In-reply-to <CAP7+vJ+1buCoXURuAg+kSNYv7m23Q8i8d_vw9stzkA+krVOcQw@mail.gmail.com>
Content
Guido van Rossum added the comment:
>
> Yes for float() -- but for str() it would seem redundant? (Or what's
> the context?)

If a user has

     class Color(StrEnum):
         red = 'ff0000'
         green = '00ff00'
         blue = '0000ff'

..
..
..

oh.  `str()` isn't going to give is the `value`'s string, is it?

Hmmm...

Instead of calling int() or float() on an enum member, perhaps we could make json smart enough to use the `value`?  That 
would also cover pure Enums.
History
Date User Action Args
2013-06-22 05:08:18ethan.furmansetrecipients: + ethan.furman, gvanrossum, barry, rhettinger, amaury.forgeotdarc, ncoghlan, pitrou, ezio.melotti, eli.bendersky, eric.snow
2013-06-22 05:08:17ethan.furmanlinkissue18264 messages
2013-06-22 05:08:17ethan.furmancreate