Python Decorators as Classes

Duration: 15 minutes

About this video

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.