1- :mod: `contextlib ` --- Utilities for :keyword: `with `\ -statement contexts
2- ========================================================================
1+ :mod: `! contextlib ` --- Utilities for :keyword: `! with `\ -statement contexts
2+ ==========================================================================
33
44.. module :: contextlib
55 :synopsis: Utilities for with-statement contexts.
@@ -72,7 +72,7 @@ Functions and classes provided:
7272
7373 The function being decorated must return a :term: `generator `-iterator when
7474 called. This iterator must yield exactly one value, which will be bound to
75- the targets in the :keyword: `with ` statement's :keyword: `as ` clause, if any.
75+ the targets in the :keyword: `with ` statement's :keyword: `! as ` clause, if any.
7676
7777 At the point where the generator yields, the block nested in the :keyword: `with `
7878 statement is executed. The generator is then resumed after the block is exited.
@@ -82,9 +82,9 @@ Functions and classes provided:
8282 the error (if any), or ensure that some cleanup takes place. If an exception is
8383 trapped merely in order to log it or to perform some action (rather than to
8484 suppress it entirely), the generator must reraise that exception. Otherwise the
85- generator context manager will indicate to the :keyword: `with ` statement that
85+ generator context manager will indicate to the :keyword: `! with ` statement that
8686 the exception has been handled, and execution will resume with the statement
87- immediately following the :keyword: `with ` statement.
87+ immediately following the :keyword: `! with ` statement.
8888
8989 :func: `contextmanager ` uses :class: `ContextDecorator ` so the context managers
9090 it creates can be used as decorators as well as in :keyword: `with ` statements.
@@ -346,7 +346,7 @@ Functions and classes provided:
346346 As the decorated function must be able to be called multiple times, the
347347 underlying context manager must support use in multiple :keyword: `with `
348348 statements. If this is not the case, then the original construct with the
349- explicit :keyword: `with ` statement inside the function should be used.
349+ explicit :keyword: `! with ` statement inside the function should be used.
350350
351351 .. versionadded :: 3.2
352352
@@ -771,7 +771,7 @@ Reentrant context managers
771771
772772More sophisticated context managers may be "reentrant". These context
773773managers can not only be used in multiple :keyword: `with ` statements,
774- but may also be used *inside * a :keyword: `with ` statement that is already
774+ but may also be used *inside * a :keyword: `! with ` statement that is already
775775using the same context manager.
776776
777777:class: `threading.RLock ` is an example of a reentrant context manager, as are
0 commit comments