Duration: 10 minutes
In this week's screencast will we talking about decorators as functions and how to deal with function masking when writing these decorators. We cover a simple example on how to italicize and bold text for html output using decorators.
Posted on May 11, 2013
Duration: 15 minutes
In this week's screencast we are discussing decorators and the use of them in python. We go through and example of building a cache for functions, so if something is requested twice we are able to retrieve it from the dictionary the second time through. We implement this using a decorator implemented as a class. We go through the concept of callables as well as explain the @decorator syntax and what it is actually doing.
Posted on April 28, 2013