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 eajames, eric.smith, mark.dickinson, r.david.murray
Date 2016-09-02.17:54:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1472838841.44.0.123622760016.issue27934@psf.upfronthosting.co.za>
In-reply-to
Content
Note that this will also change the results for JSON output of NumPy float64 values, so at the very least I'd expect this change to break (admittedly poorly written) unit tests / doctests.

Python 2.7.12 (default, Jul 10 2016, 18:28:23) 
[GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> import json
>>> x = np.float64(3.3)
>>> json.dumps(x)
'3.2999999999999998'
>>> repr(x)
'3.2999999999999998'
>>> float.__repr__(x)
'3.3'
History
Date User Action Args
2016-09-02 17:54:01mark.dickinsonsetrecipients: + mark.dickinson, eric.smith, r.david.murray, eajames
2016-09-02 17:54:01mark.dickinsonsetmessageid: <1472838841.44.0.123622760016.issue27934@psf.upfronthosting.co.za>
2016-09-02 17:54:01mark.dickinsonlinkissue27934 messages
2016-09-02 17:54:01mark.dickinsoncreate