summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorEric Smith <eric@trueblade.com>2008-02-20 23:34:22 (GMT)
committerEric Smith <eric@trueblade.com>2008-02-20 23:34:22 (GMT)
commit7ef40bf9c77e0567e4fad656390b0a577f0e2080 (patch)
treed2357f8d16f0a53ff7c23c76ddd7f73768f6caaf /Misc
parente1b8e9c666335d6a392d32b5900d419019ca3936 (diff)
downloadcpython-7ef40bf9c77e0567e4fad656390b0a577f0e2080.zip
cpython-7ef40bf9c77e0567e4fad656390b0a577f0e2080.tar.gz
cpython-7ef40bf9c77e0567e4fad656390b0a577f0e2080.tar.bz2
Trim leading zeros from a floating point exponent, per C99. See issue 1600. As far as I know, this only affects Windows. Add float type 'n' to PyOS_ascii_formatd (see PEP 3101 for 'n' description).
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS7
1 files changed, 7 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 40b78fc..f4d1cc5 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,13 @@ What's New in Python 2.6 alpha 1?
Core and builtins
-----------------
+- Issue #1600: Modifed PyOS_ascii_formatd to use at most 2 digit
+ exponents for exponents with absolute value < 100. Follows C99
+ standard. This is a change on Windows, which would use 3 digits.
+ Also, added 'n' to the formats that PyOS_ascii_formatd understands,
+ so that any alterations it does to the resulting string will be
+ available in stringlib/formatter.h (for float.__format__).
+
- Implemented PEP 3101, Advanced String Formatting. This adds a new
builtin format(); a format() method for str and unicode; a
__format__() method to object, str, unicode, int, long, float, and