Website Maintenance Alert
Due to scheduled maintenance, the USENIX website will not be available on Tuesday, December 17, from 10:00 am to 2:00 pm Pacific Daylight Time (UTC -7). We apologize for the inconvenience.
If you are trying to register for Enigma 2020, please complete your registration before or after this time period.
Python: 5 Easy Context Managers
At the last PyCon conference, Raymond Hettinger gave a keynote talk in which he noted that context managers might be one of Python’s most powerful yet underappreciated features. Seeing how something so minor could be one of the language’s most powerful features as claimed might be a bit of a stretch. In this article, we’ll take a look at some examples involving context managers and see that so much more is possible.