docs.python.org
Python has a context manager that suppresses any of the specified exceptions:
Source code: Lib/contextlib.py This module provides utilities for common tasks involving the with statement. For more information see also Context Manager Types and With Statement Context Managers....
Rebeca Sarai











