I recently did a talk on Python’s neat functools module. This screencast covers the majority of the module:
- Caching
cache
lru_cache
total_ordering
partial
reduce
singledispatch
wraps
Related Reading
- Mouse Vs Python – Partial Functions
- Real Python: Python’s reduce(): From Functional to Pythonic Style
- Mouse Vs Python – Function Overloading with singledispatch
- Mouse Vs Python – Python – How to use functools.wraps