Python Coding Tip: Using the ‘With’ Statement Instead ‘Try Finally’

The ‘with’ statement and Context Managers in Python, two ways to implement the context management protocol… Read more

Similar

Customizing class creation in Python

When one thinks of ways of customizing classes at creation time, people probably typically think of metaclasses and class decorators. Metaclasses are at typically viewed as the beginning of class creation while class decorators are at the end. But what yo... (more…)

Read more »