mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
+ "context manager"
This commit is contained in:
parent
4e3ebe0bae
commit
ffe455c3a2
1 changed files with 5 additions and 0 deletions
|
@ -68,6 +68,11 @@ Glossary
|
||||||
advanced mathematical feature. If you're not aware of a need for them,
|
advanced mathematical feature. If you're not aware of a need for them,
|
||||||
it's almost certain you can safely ignore 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
|
decorator
|
||||||
A function returning another function, usually applied as a function
|
A function returning another function, usually applied as a function
|
||||||
transformation using the ``@wrapper`` syntax. Common examples for
|
transformation using the ``@wrapper`` syntax. Common examples for
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue