From ffe455c3a2432fa34c08ad434ec51aecd366530d Mon Sep 17 00:00:00 2001 From: Skip Montanaro Date: Sat, 8 Dec 2007 15:23:31 +0000 Subject: [PATCH] + "context manager" --- Doc/glossary.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Doc/glossary.rst b/Doc/glossary.rst index c8347431e1..1ab8a8c0b4 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 -- 2.50.1