Design by contract programming
Today, thanks to PyCoder's Weekly, I discovered this blog post and more generally learned about design by contract (DbC) methodology.
Inspired from it, I decided to write down a simple snippet to implement preconditions and postconditions through Python decorators.