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 stein
Recipients stein
Date 2009-03-28.18:58:34
SpamBayes Score 0.0005916053
Marked as misclassified No
Message-id <1238266716.08.0.597393543227.issue5589@psf.upfronthosting.co.za>
In-reply-to
Content
Hi there,

I just recognized a weird behaviour of the json module...

Dumpig a float like 0.1 I get some crazy output.

Here is an example:

>>> import json
>>> json.dumps([.1])
'[0.10000000000000001]'

Very simple to reproduce;)

- Sebastian
History
Date User Action Args
2009-03-28 18:58:36steinsetrecipients: + stein
2009-03-28 18:58:36steinsetmessageid: <1238266716.08.0.597393543227.issue5589@psf.upfronthosting.co.za>
2009-03-28 18:58:35steinlinkissue5589 messages
2009-03-28 18:58:34steincreate