Skip to content
Baffled Architect

Baffled Architect

Tag: Coding

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

Recent Posts

  • rsync for the win
  • From Blind Spots to 20/20 Vision: Building a Robust Observability Stack
  • From code to container: Lean VPS deployment
  • VPS multi-docker application guide
  • Opus 4.6: building a finance tool in one shot

Categories

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

Tags

Agile AI Anbernix Architecture AWS Books CD CDK CI Claude Coding Container Docker Emulation Fedora Howto Infrastructure Investing IONOS JIRA JSON Linux ML Observability Photo Plesk Polkemmet Programming Python React Rustlang Scotland Scrum Server Snippet SSL STA Tech Army The Horn Ubuntu Video Games Volunteer VPS West Lothian 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.