Skip to content
Baffled Architect

Baffled Architect

Author: Dougie

Python’s with statement

Posted on 9 June 2022 by Dougie

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 2 3 4

Recent Posts

  • Headphones that switch themselves off
  • Configure an antigravity-cli statusline
  • From ancient Greece to servers: the origin of daemon
  • Custom Fonts on the XTEink v3
  • Flashing XTEink v3 with esptool on Fedora

Categories

  • Architecture
  • Books
  • Coding
  • Linux
  • Misc
  • Python
  • Sights
  • Volunteer
  • WordPress

Tags

Agile AI Anbernix Anthropic Antigravity API Architecture AWS CD CDK CI Claude Coding Container Docker Emulation Fedora Google History Howto Infrastructure Investing IONOS JIRA JSON Linux Observability Plesk Programming Python Retro Scrum Server Snippet SSL STA Tech Army The Horn Ubuntu Video Games Volunteer VPS West Lothian Xteink zsh

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

Theme: Baffled Architect

This site uses essential cookies to ensure it functions properly. No tracking or advertising cookies are used.