summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2007-12-08 15:23:31 (GMT)
committerSkip Montanaro <skip@pobox.com>2007-12-08 15:23:31 (GMT)
commitffe455c3a2432fa34c08ad434ec51aecd366530d (patch)
tree3314bd453d47ee175a188a8edb45b725a0d4da06 /Doc
parent4e3ebe0baeba9a7b4a1dcfcadb8b042aef7eb5fb (diff)
downloadcpython-ffe455c3a2432fa34c08ad434ec51aecd366530d.zip
cpython-ffe455c3a2432fa34c08ad434ec51aecd366530d.tar.gz
cpython-ffe455c3a2432fa34c08ad434ec51aecd366530d.tar.bz2
+ "context manager"
Diffstat (limited to 'Doc')
-rw-r--r--Doc/glossary.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/glossary.rst b/Doc/glossary.rst
index c834743..1ab8a8c 100644
--- a/Doc/glossary.rst
+++ b/Doc/glossary.rst
@@ -68,6 +68,11 @@ Glossary
advanced mathematical feature. If you're not aware of a need for them,
it's almost certain you can safely ignore them.
+ context manager
+ Objects which control the environment seen in a :keyword:`with`
+ statement by defining :meth:`__enter__` and :meth:`__exit__` methods.
+ See :pep:`343`.
+
decorator
A function returning another function, usually applied as a function
transformation using the ``@wrapper`` syntax. Common examples for