contextlib.ExitStack.enter_context()

enter_context(cm)

Enters a new context manager and adds its __exit__() method to the callback stack. The return value is the result of the context manager’s own __enter__() method.

These context managers may suppress exceptions just as they normally would if used directly as part of a with statement.

doc_python
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.