Ethan Furman added the comment: I was unable to find any references to previous problems with json and floats. A quick-n-dirty patch yields the following:
--> from json import dumps, loads --> from enum import Enum --> class FE(float, Enum): ... pass ... --> class Test(FE): ... one = 1.0 ... --> Test.one <Test.one: 1.0> --> str(Test.one) '1.0' --> dumps(Test.one) '1.0' --> loads(dumps(Test.one)) 1.0 All json and enum tests are still passing. If this is an acceptable solution I'll create a nicer patch and post for review. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18264> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com