summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorEric Smith <eric@trueblade.com>2009-04-30 00:58:58 (GMT)
committerEric Smith <eric@trueblade.com>2009-04-30 00:58:58 (GMT)
commit9139cc6a3ba9b6c66a09256f3295b1a4ed50adc9 (patch)
tree7e116afff6e262ba6161cad6c1f223f6741bf0d0 /Misc
parent2518d3c1c0b907b1cabdaa647c7affaa01ffca63 (diff)
downloadcpython-9139cc6a3ba9b6c66a09256f3295b1a4ed50adc9.zip
cpython-9139cc6a3ba9b6c66a09256f3295b1a4ed50adc9.tar.gz
cpython-9139cc6a3ba9b6c66a09256f3295b1a4ed50adc9.tar.bz2
Issue #1588: Add complex.__format__.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS5
1 files changed, 4 insertions, 1 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 35846ea..75d81fc 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,9 @@ What's New in Python 2.7 alpha 1
Core and Builtins
-----------------
+- Issue #1588: Add complex.__format__. For example,
+ format(complex(1, 2./3), '.5') now produces a sensible result.
+
- Issue #5864: Fix empty format code formatting for floats so that it
never gives more than the requested number of significant digits.
@@ -45,7 +48,7 @@ Core and Builtins
some builtin types.
- Issue #1869: fix a couple of minor round() issues. round(5e15+1)
- was giving 5e15+2; round(-0.0) was losing the sign of the zero.
+ was giving 5e15+2; round(-0.0) was losing the sign of the zero.
- Issue #5759: float() didn't call __float__ on str subclasses.