[issue22297] 2.7 json encoding broken for enums

2016-04-19 Thread Berker Peksag
Berker Peksag added the comment: -1 from me, too. -- nosy: +berker.peksag stage: -> resolved status: open -> closed ___ Python tracker ___

[issue22297] 2.7 json encoding broken for enums

2014-10-07 Thread Edward O
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

[issue22297] 2.7 json encoding broken for enums

2014-10-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - docs@python components: +Documentation -Library (Lib) nosy: +docs@python stage: test needed - status: open - pending ___ Python tracker rep...@bugs.python.org

[issue22297] 2.7 json encoding broken for enums

2014-08-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The enum types was added to the stdlib in 3.4. There are no the enum types in Python 2.7. There is no a bug, support for the enum types is new feature. -- nosy: +barry, eli.bendersky, ethan.furman, serhiy.storchaka resolution: - not a bug status:

[issue22297] 2.7 json encoding broken for enums

2014-08-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Edward, is this a regression? If yes, we should probably fix it. -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22297 ___

[issue22297] 2.7 json encoding broken for enums

2014-08-30 Thread Ethan Furman
Ethan Furman added the comment: This is not a regression. json only deals with standard types (int, str, etc.), and Enum is not a standard type. Enum was introduced in 3.4, so corresponding changes were made to json to support int and float subclasses, of which IntEnum is one. In other

[issue22297] 2.7 json encoding broken for enums

2014-08-30 Thread Ethan Furman
Ethan Furman added the comment: One argument against fixing: If we do fix in 2.7.9 then any program targeting it will be unable to target 3.0-3.3, as those versions do not have the fix from 3.4. -- ___ Python tracker rep...@bugs.python.org

[issue22297] 2.7 json encoding broken for enums

2014-08-30 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Aug 30, 2014, at 07:34 PM, Ethan Furman wrote: In other words, this was a bug that no one noticed for many many releases, and I'm not sure we should fix it in 2.7 now. Arguments for fixing? -1 on fixing it, but we *can* document workarounds. Here's what

[issue22297] 2.7 json encoding broken for enums

2014-08-29 Thread Edward O
Changes by Edward O edoubray...@gmail.com: -- title: json encoding broken for - 2.7 json encoding broken for enums ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22297 ___

[issue22297] 2.7 json encoding broken for enums

2014-08-29 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +ezio.melotti, pitrou, rhettinger stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22297 ___