The Curious Case of Python’s Context Manager

Python’s context managers are great for resource management and stopping the propagation of leaked abstractions. You’ve probably used it while opening a file or a database connection. Usually it starts with a with statement like this: Read more

Similar

Unravelling Python’s `Async` and `Await`

For this post in my Python syntactic sugar series, I am going to cover async and await. Now when I started to think about this post I was worried it was going to be rather long and arduous to research (although I believe class is going to ultimately win t... (more…)

Read more »