Staging: this is not the live site, pydocs.org.
contextlib
Symbols in contextlib
a
- aclosing
- Async context manager for safely finalizing an asynchronously cleaned-up resource such as an async generator, calling its ``aclose()`` method.
- AsyncExitStack
- Async context manager for dynamic management of a stack of exit callbacks.
c
- chdir
- Non thread-safe context manager to change the current working directory.
- closing
- Context to automatically close something at the end of a block.
- ContextDecorator
- A base class or mixin that enables context managers to work as decorators.
e
- ExitStack
- Context manager for dynamic management of a stack of exit callbacks.
n
- nullcontext
- Context manager that does no additional processing.
r
- redirect_stderr
- Context manager for temporarily redirecting stderr to another file.
- redirect_stdout
- Context manager for temporarily redirecting stdout to another file.
s
- suppress
- Context manager to suppress specified exceptions