[issue22297] 2.7 json encoding broken for enums
Oct. 7, 2014
3:50 p.m.
Edward O added the comment: The arguments for fixing: * int subclasses overriding str is a very common usecase for enums (so much so that it was added to stdlib in 3.4). * json supporting a standard type of a subsequent python version, though not mandatory, would be beneficial to Py2/Py3 compatibility. * fixing this cannot break existing code * the fix could theoretically be done to 3.0-3.3 if Ethan's argument is deemed important. ---------- status: pending -> open _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue22297> _______________________________________
3773
Age (days ago)
3773
Last active (days ago)
0 comments
1 participants
participants (1)
-
Edward O