[issue5686] Float formatting with no type code produces incorrect output for exponential notation

Eric Smith report at bugs.python.org
Sat Apr 4 14:23:23 CEST 2009


Eric Smith <eric at trueblade.com> added the comment:

The documentation doesn't agree with the PEP. The docs at
http://docs.python.org/library/string.html#formatstrings just say '' is
the same as 'g'. It does not draw a distinction between exponential and
fixed output.

The PEP has the "at least one digit after the decimal" language. It also
does not draw a distinction between exponential and fixed output.

----------
nosy: +marketdickinson

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5686>
_______________________________________


More information about the Python-bugs-list mailing list