Context Managers and Python's with Statement – Real Python
-
realpython.com
Clear