[Python-checkins] r59418 - python/trunk/Doc/glossary.rst
skip.montanaro
python-checkins at python.org
Sat Dec 8 16:23:31 CET 2007
Author: skip.montanaro
Date: Sat Dec 8 16:23:31 2007
New Revision: 59418
Modified:
python/trunk/Doc/glossary.rst
Log:
+ "context manager"
Modified: python/trunk/Doc/glossary.rst
==============================================================================
--- python/trunk/Doc/glossary.rst (original)
+++ python/trunk/Doc/glossary.rst Sat Dec 8 16:23:31 2007
@@ -68,6 +68,11 @@
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
More information about the Python-checkins
mailing list