Loading video player…

Supporting the "with" Statement in Your Own Python Objects

In this lesson you’ll learn how to implement the context managers functionalities for your own Python objects. In this case you’ll make use of the class-based approach.

Become a Member to join the conversation.