summaryrefslogtreecommitdiff
path: root/Doc/library/shelve.rst
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2013-12-25 23:21:03 -0500
committerR David Murray <rdmurray@bitdance.com>2013-12-25 23:21:03 -0500
commit575fb3195517fc06ec664a1fbfcedf84a2d8ea3a (patch)
tree274dcd971a753b7219db18f57675f6c496b76c1b /Doc/library/shelve.rst
parentb5d55184e0fd05c9d0414ffbcfe5759a8f87d9c3 (diff)
downloadcpython-git-575fb3195517fc06ec664a1fbfcedf84a2d8ea3a.tar.gz
shelf in with stmt, fish/csh in venv, ElementTree short_empty_elements keyword.
Also added versionadded for for fish/csh, fixed indentation of versionadded for ElementTree.write, and make the behavior of shelf as a context manager explicit in the docs.
Diffstat (limited to 'Doc/library/shelve.rst')
-rw-r--r--Doc/library/shelve.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/shelve.rst b/Doc/library/shelve.rst
index 4ba9ddc477..22e202dace 100644
--- a/Doc/library/shelve.rst
+++ b/Doc/library/shelve.rst
@@ -121,7 +121,8 @@ Restrictions
The *keyencoding* parameter is the encoding used to encode keys before they
are used with the underlying dict.
- :class:`Shelf` objects can also be used as context managers.
+ A :class:`Shelf` object can also be used as a context manager, in which
+ case it will be automatically closed when the :keyword:`with` block ends.
.. versionchanged:: 3.2
Added the *keyencoding* parameter; previously, keys were always encoded in