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 bob.ippolito
Recipients anders.rundgren.net@gmail.com, bob.ippolito, ethan.furman, rhettinger
Date 2014-12-29.09:30:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1419845416.87.0.651673483479.issue23123@psf.upfronthosting.co.za>
In-reply-to
Content
I don't think it's reasonable to expect Decimal to always output precisely the same string it was given. It's a waste of complexity and space and the only time you would want this behavior is when you really should've left it accessible as a string in the first place.

It sounds like the spec for that signature may be poorly designed (with regard to portability). Relying on the precise string output of a number is not going to work in any JSON parser I've ever seen. You'd need to work at the tokenizer level and not all of the parsers provide an interface at that layer (since many of them combine tokenization and parsing).
History
Date User Action Args
2014-12-29 09:30:16bob.ippolitosetrecipients: + bob.ippolito, rhettinger, ethan.furman, anders.rundgren.net@gmail.com
2014-12-29 09:30:16bob.ippolitosetmessageid: <1419845416.87.0.651673483479.issue23123@psf.upfronthosting.co.za>
2014-12-29 09:30:16bob.ippolitolinkissue23123 messages
2014-12-29 09:30:16bob.ippolitocreate