summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.1.rst
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2009-05-28 22:20:03 (GMT)
committerRaymond Hettinger <python@rcn.com>2009-05-28 22:20:03 (GMT)
commit91e3b9d89d6a63149dcd9ab12223f552d1473aab (patch)
tree2d3035aaa19b15a2d5cd437a52905f66698a8c8f /Doc/whatsnew/3.1.rst
parentfb12391c44d9491e2d1635eb5f82af3b0da0ec29 (diff)
downloadcpython-91e3b9d89d6a63149dcd9ab12223f552d1473aab.zip
cpython-91e3b9d89d6a63149dcd9ab12223f552d1473aab.tar.gz
cpython-91e3b9d89d6a63149dcd9ab12223f552d1473aab.tar.bz2
Deprecate contextlib.nested(). The with-statement now provides this functionality directly.
Diffstat (limited to 'Doc/whatsnew/3.1.rst')
-rw-r--r--Doc/whatsnew/3.1.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.1.rst b/Doc/whatsnew/3.1.rst
index 8a3a01f..468eda8 100644
--- a/Doc/whatsnew/3.1.rst
+++ b/Doc/whatsnew/3.1.rst
@@ -164,6 +164,9 @@ Some smaller changes made to the core Python language are:
... if '<critical>' in line:
... outfile.write(line)
+ With the new syntax, the :func:`contextlib.nested` function is no longer
+ needed and is not deprecated.
+
(Contributed by Georg Brandl and Mattias Brändström;
`appspot issue 53094 <http://codereview.appspot.com/53094>`_.)