Understanding Context Manager and its Syntastic Sugar
The Context Manager is one of my favorite features in Python. It can be used for all kind of interesting things around blocks of code. This article gives a background about the origins of the context manager, which problem it solves and how to use it.
Links of the Week (07/2024)
xml.etree.ElementTree vs. lxml.etree
When working with XML and Python I often start with just using xml.etree.ElementTree from Python’s standard library. It comes with Python and is sufficient for most projects. But with quite big XML documents (> 1 GiB) parsing becomes slow and lxml.etree shines.
Read more