[docs] [issue22297] 2.7 json encoding broken for enums
Edward O
report at bugs.python.org
Tue Oct 7 17:50:44 CEST 2014
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 at bugs.python.org>
<http://bugs.python.org/issue22297>
_______________________________________
More information about the docs
mailing list