summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2010-12-05 08:35:21 (GMT)
committerRaymond Hettinger <python@rcn.com>2010-12-05 08:35:21 (GMT)
commite5e1a987b2263de7f4e87386ddf17d3b986e07d7 (patch)
tree761dcfa3239649ccd267f47e150e2a3d749ee3c4
parent3ad46757f4aa0dd2330b23a27d6ad72dff9efd00 (diff)
downloadcpython-e5e1a987b2263de7f4e87386ddf17d3b986e07d7.zip
cpython-e5e1a987b2263de7f4e87386ddf17d3b986e07d7.tar.gz
cpython-e5e1a987b2263de7f4e87386ddf17d3b986e07d7.tar.bz2
Nits and todos
-rw-r--r--Doc/whatsnew/3.2.rst15
1 files changed, 9 insertions, 6 deletions
diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst
index 5f73a1d..8ac8ff1 100644
--- a/Doc/whatsnew/3.2.rst
+++ b/Doc/whatsnew/3.2.rst
@@ -317,11 +317,12 @@ Some smaller changes made to the core Python language are:
(From multiple contributors in :issue:`7475`.)
-* String formatting for :func:`format` and :meth:`str.format` gained a new format
- character **#**. For integers in binary, octal, or hexadecimal, it causes
- the output to be prefixed with '0b', '0o', or '0x' respectively. For floats,
- complex, and Decimal, it causes the output to always have a decimal point
- even when no digits follow it.
+* String formatting for :func:`format` and :meth:`str.format` gained new
+ capabilities for the format character **#**. Previously, for integers in
+ binary, octal, or hexadecimal, it caused the output to be prefixed with '0b',
+ '0o', or '0x' respectively. Now it can also handle floats, complex, and
+ Decimal, causing the output to always have a decimal point even when no digits
+ follow it.
>>> format(20, '#o')
'0o24'
@@ -429,7 +430,7 @@ Some smaller changes made to the core Python language are:
(Added by Antoine Pitrou and Georg Brandl in :issue:`10093` and :issue:`477863`.)
-* :class:`range` objects now support and *index* and *count* methods. This is
+* :class:`range` objects now support *index* and *count* methods. This is
part of an effort to make more objects fully implement the :class:`collections.Sequence`
:term:`abstract base class`. As a result, the language will have a more
uniform API.
@@ -735,6 +736,8 @@ New, Improved, and Deprecated Modules
(Contributed by Rodolpho Eckhardt and Nick Coghlan, :issue:`10220`.)
+.. XXX: Create a new section for all changes relating to context managers.
+.. XXX: Various ConfigParser changes
.. XXX: Mention inspect.getattr_static (Michael Foord)
.. XXX: Mention urllib.parse changes
Issue 9873 (Nick Coghlan):