File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -243,10 +243,14 @@ Glossary
243
243
advanced mathematical feature. If you're not aware of a need for them,
244
244
it's almost certain you can safely ignore them.
245
245
246
+ context management protocol
247
+ The :meth: `~object.__enter__ ` and :meth: `~object.__exit__ ` methods called
248
+ by the :keyword: `with ` statement. See :pep: `343 `.
249
+
246
250
context manager
247
- An object which controls the environment seen in a :keyword: ` with `
248
- statement by defining :meth: ` ~object.__enter__ ` and :meth: ` ~object.__exit__ ` methods.
249
- See :pep: `343 `.
251
+ An object which implements the :term: ` context management protocol ` and
252
+ controls the environment seen in a :keyword: ` with ` statement. See
253
+ :pep: `343 `.
250
254
251
255
context variable
252
256
A variable which can have different values depending on its context.
You can’t perform that action at this time.
0 commit comments