Blog
About
Posts with #decorators tag
Thu 10 June 2010
Python check arguments types
Decorators help us wrap some routines at function invocation. Here I show a small example that raises TypeError exceptions when given args have unexpected type. Note that it is not pythonic to...