Skip to content
The Baffled Architect

The Baffled Architect

Every day is a school day

Author: Dougie Richardson

Working together

Python’s with statement

Posted on June 9, 2022 by Dougie Richardson

Managing resources usually involves three steps – allocating, using, and releasing. You’re familiar with the try… finally pattern but Python also provides context managers.

Posted in CodingTagged Coding, Python, Snippet
← Previous 1 … 5 6 7

© 2026 The Baffled Architect - Every day is a school day.

Theme: Baffled Architect