[Python-checkins] r73650 - in python/branches/py3k/Doc/whatsnew: 3.2.rst index.rst
raymond.hettinger
python-checkins at python.org
Sun Jun 28 23:37:09 CEST 2009
Author: raymond.hettinger
Date: Sun Jun 28 23:37:08 2009
New Revision: 73650
Log:
Fill-in some new news.
Modified:
python/branches/py3k/Doc/whatsnew/3.2.rst
python/branches/py3k/Doc/whatsnew/index.rst
Modified: python/branches/py3k/Doc/whatsnew/3.2.rst
==============================================================================
--- python/branches/py3k/Doc/whatsnew/3.2.rst (original)
+++ python/branches/py3k/Doc/whatsnew/3.2.rst Sun Jun 28 23:37:08 2009
@@ -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 @@
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 @@
* Stub
-Porting to Python 3.1
+Porting to Python 3.2
=====================
This section lists previously described changes and other bugfixes
Modified: python/branches/py3k/Doc/whatsnew/index.rst
==============================================================================
--- python/branches/py3k/Doc/whatsnew/index.rst (original)
+++ python/branches/py3k/Doc/whatsnew/index.rst Sun Jun 28 23:37:08 2009
@@ -11,6 +11,7 @@
.. toctree::
:maxdepth: 2
+ 3.2 rst
3.1.rst
3.0.rst
2.7.rst
More information about the Python-checkins
mailing list