summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2013-12-31 18:45:38 (GMT)
committerR David Murray <rdmurray@bitdance.com>2013-12-31 18:45:38 (GMT)
commitd592bb2dc45a11809a0a05a817e79894b2f6b1d8 (patch)
tree967ca16defcd4e8dbc4924e3a675575b38f804ff /Doc/whatsnew
parent1cb4f607d1b397e678dc9f3d6b535d36c9d48d3c (diff)
downloadcpython-d592bb2dc45a11809a0a05a817e79894b2f6b1d8.zip
cpython-d592bb2dc45a11809a0a05a817e79894b2f6b1d8.tar.gz
cpython-d592bb2dc45a11809a0a05a817e79894b2f6b1d8.tar.bz2
whatsnew: afic.open supports 'with'.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.4.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst
index 19d71cc..ccb9e45 100644
--- a/Doc/whatsnew/3.4.rst
+++ b/Doc/whatsnew/3.4.rst
@@ -494,6 +494,11 @@ aifc
The :meth:`~aifc.getparams` method now returns a namedtuple rather than a
plain tuple. (Contributed by Claudiu Popa in :issue:`17818`.)
+:func:`aifc.open` now supports the context manager protocol: when used in a
+:keyword:`with` block, the :meth:`~aifc.aifc.close` method of the returned
+object will be called automatically at the end of the block. (Contributed by
+Serhiy Storchacha in :issue:`16486`.)
+
argparse
--------