]> granicus.if.org Git - python/commit
Issue #7094: Add alternate ('#') flag to __format__ methods for float, complex and...
authorEric Smith <eric@trueblade.com>
Thu, 25 Nov 2010 16:08:06 +0000 (16:08 +0000)
committerEric Smith <eric@trueblade.com>
Thu, 25 Nov 2010 16:08:06 +0000 (16:08 +0000)
commit984bb58000df9cdba438c7ecb0bae5ad67878696
tree87077ab2bbe949b5241ed9db5f2073572094ffde
parentc1d98d685032dd831ced32463b3f88cce6af4067
Issue #7094: Add alternate ('#') flag to __format__ methods for float, complex and Decimal. Allows greater control over when decimal points appear. Added to make transitioning from %-formatting easier. '#g' still has a problem with Decimal which I'll fix soon.
Doc/library/string.rst
Lib/decimal.py
Lib/test/test_complex.py
Lib/test/test_decimal.py
Lib/test/test_float.py
Lib/test/test_types.py
Misc/ACKS
Misc/NEWS
Objects/stringlib/formatter.h