Code Challenge 09 - Give the With Statement some Love and Create a Context Manager

Posted by PyBites on Mon 06 March 2017 in Challenges • Tagged with codechallenges, learning, with, contextlib, contextmanagers, decorators, generators • 1 min read

A new week, more coding! This week we have a free form exercise. This week you will implement your own Context Manager (= support with on your object).

Continue reading

Beautiful, idiomatic Python

Posted by Bob on Tue 10 January 2017 in Best practices • Tagged with pythonic, cleancode, collections, 2vs3, namedtuples, decorators, contextmanagers • 2 min read

Transforming Code into Beautiful, Idiomatic Python is a must-watch to write more Pythonic code. In this post some highlights.

Continue reading