In this video you will learn what a context manager in Python is and how it helps you to prevent wrapping code in try/finally blocks. After watching, you can create your own context manager that adds stopwatch functionality to arbitrary functions.
Written by Loek van den Ouweland on 2020-04-10.
Questions regarding this artice? You can send them to the address below.