]> 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 18:26:08 +0000 (18:26 +0000)
committerEric Smith <eric@trueblade.com>
Tue, 5 May 2009 18:26:08 +0000 (18:26 +0000)
commita985a3aee46dfda4b59cf20414bab199ba1b9659
treed7c3615c46cb9a17b3c330ab78c41dd6023adf2f
parent929ab934891719ea1561a623ee1b2e502b59e022
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