As part of my series on Python’s syntactic sugar [https://snarky.ca/tag/syntactic-sugar/], I want to tackle unravelling the with statement [https://docs.python.org/3.8/reference/compound_stmts.html#the-with-statement]. Looking at the bytecode for a simple with statement, you…

» Tall, Snarky Canadian | snarky.ca