]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue 2264: empty float presentation type needs to have at least one digit past the...
authorEric Smith <eric@trueblade.com>
Mon, 17 Mar 2008 11:01:01 +0000 (11:01 +0000)
committerEric Smith <eric@trueblade.com>
Mon, 17 Mar 2008 11:01:01 +0000 (11:01 +0000)
commit8113ca63b948d059aac6678b70cce95ac0c59abd
tree51d08fcd71b93c962eb8b328a05ef569675d0538
parent43da35de7bfbdbcba26d7d4226835cc718c2de7d
Issue 2264: empty float presentation type needs to have at least one digit past the decimal point.

Added "Z" format_char to PyOS_ascii_formatd to support empty float presentation type.
Renamed buf_size in PyOS_ascii_formatd to more accurately reflect it's meaning.
Modified format.__float__ to use the new "Z" format as the default.
Added test cases.
Lib/test/test_types.py
Objects/stringlib/formatter.h
Python/pystrtod.c