This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients eric.araujo, ezio.melotti, mark.dickinson, pitrou, rhettinger, serhiy.storchaka, skrah
Date 2012-11-23.10:13:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1353665585.73.0.390211259634.issue16535@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2012-11-23 10:13:05mark.dickinsonsetrecipients: + mark.dickinson, rhettinger, pitrou, ezio.melotti, eric.araujo, skrah, serhiy.storchaka
2012-11-23 10:13:05mark.dickinsonsetmessageid: <1353665585.73.0.390211259634.issue16535@psf.upfronthosting.co.za>
2012-11-23 10:13:05mark.dickinsonlinkissue16535 messages
2012-11-23 10:13:05mark.dickinsoncreate