Mark Dickinson added the comment: Judging by the discussion that Éric points to, and by the various stackoverflow questions on the topic ([1], [2]), this is a common enough need that I think it would make sense to have some support for it in the std. lib.
There's a sense in which Decimal is the 'right' type for json, and we shouldn't make it harder for people to do the right thing with respect to (e.g.) financial data in databases. [1] http://stackoverflow.com/questions/4019856/decimal-to-json [2] http://stackoverflow.com/questions/1960516/python-json-serialize-a-decimal-object ---------- nosy: +mark.dickinson stage: -> needs patch versions: +Python 3.4 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16535> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com