Closed Captioning Closed captioning available on our YouTube channel

How Python's context managers help you clean up after yourself

InfoWorld | Jul 27, 2020

Sometimes in Python programs you need to acquire external resources, like file handles, and then free them again. Python's context manager construction lets you automatically free things up when you're done with them, and in a way that lets you see at a glance the scope of what's used and when.

Copyright © 2020 IDG Communications, Inc.

Featured videos from