It’s useful to test for exceptions exceptions in your code. A handy feature of pytest makes that fun and flexible!
Articles on contextmanagers
Code Challenge 09 – The With Statement and Context Managers – Review
By PyBites Team on 11 March 2017
It’s end of the week again so we review the code challenge of this week. It’s never late to sign up, just fork our challenges repo and start coding.
Code Challenge 09 – The With Statement and Context Managers
By PyBites Team on 6 March 2017
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).
Twitter digest 2017 week 09
By PyBites Team on 4 March 2017
On Saturdays we will share a curated list of 15 cool things (mostly Python) we found / tweeted during the week.
Beautiful, idiomatic Python
By Bob Belderbos on 10 January 2017
Transforming Code into Beautiful, Idiomatic Python is a must-watch to write more Pythonic code. In this post some highlights.