summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.2.rst
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2009-06-28 21:37:08 (GMT)
committerRaymond Hettinger <python@rcn.com>2009-06-28 21:37:08 (GMT)
commitf558ddd61f99ec7476701b97d41c443564819413 (patch)
treed3e80131fb9fbeba5b35fa32061d289d1d494914 /Doc/whatsnew/3.2.rst
parent5a6deb4caecca67a08ee0bf79a2df02f8c26b5f9 (diff)
downloadcpython-f558ddd61f99ec7476701b97d41c443564819413.zip
cpython-f558ddd61f99ec7476701b97d41c443564819413.tar.gz
cpython-f558ddd61f99ec7476701b97d41c443564819413.tar.bz2
Fill-in some new news.
Diffstat (limited to 'Doc/whatsnew/3.2.rst')
-rw-r--r--Doc/whatsnew/3.2.rst22
1 files changed, 19 insertions, 3 deletions
diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst
index 20bfb6e..945e4b3 100644
--- a/Doc/whatsnew/3.2.rst
+++ b/Doc/whatsnew/3.2.rst
@@ -1,5 +1,5 @@
****************************
- What's New In Python 3.1
+ What's New In Python 3.2
****************************
:Author: Raymond Hettinger
@@ -66,8 +66,24 @@ Some smaller changes made to the core Python language are:
New, Improved, and Deprecated Modules
=====================================
-* Stub
+* The previously deprecated :func:`string.maketrans` function has been
+ removed in favor of the static methods, :meth:`bytes.maketrans` and
+ :meth:`bytearray.maketrans`. This change solves the confusion around which
+ types were supported by the :mod:`string` module. Now, :class:`str`,
+ :class:`bytes`, and :class:`bytearray` each have their own **maketrans** and
+ **translate** methods with intermediate translation tables of the
+ appropriate type.
+
+ (Contributed by Georg Brandl; :issue:`5675`.)
+
+* The previously deprecated :func:`contextlib.nested` function has been
+ removed in favor of a plain :keyword:`with` statement which can
+ accept multiple context managers. The latter technique is faster
+ (because it is built-in), and it does a better job finalizing multiple
+ context managers when one of them raises an exception.
+ (Contributed by Georg Brandl and Mattias Brändström;
+ `appspot issue 53094 <http://codereview.appspot.com/53094>`_.)
Optimizations
=============
@@ -90,7 +106,7 @@ Changes to Python's build process and to the C API include:
* Stub
-Porting to Python 3.1
+Porting to Python 3.2
=====================
This section lists previously described changes and other bugfixes