]> granicus.if.org Git - python/commit
Issue #5920: Changed format.__float__ and complex.__float__ to use a precision of...
authorEric Smith <eric@trueblade.com>
Tue, 5 May 2009 14:04:18 +0000 (14:04 +0000)
committerEric Smith <eric@trueblade.com>
Tue, 5 May 2009 14:04:18 +0000 (14:04 +0000)
commit63376228a3f2d3ac4a21a10c0653c3b984c2d686
treee781a7c8a1abe5c032d83bbc2948c4bd34d4d77e
parent86a05ecdb5eb91cf174e9b3c8adf0187e868aa68
Issue #5920: Changed format.__float__ and complex.__float__ to use a precision of 12 when using the empty presentation type. This more closely matches str()'s behavior and reduces surprises when adding alignment flags to an empty format string. Patch by Mark Dickinson.
Doc/c-api/conversion.rst
Include/floatobject.h
Lib/test/test_complex.py
Lib/test/test_float.py
Misc/NEWS
Objects/complexobject.c
Objects/floatobject.c
Objects/stringlib/formatter.h
Python/pystrtod.c