This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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 <>
In-reply-to <>
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?


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.
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