functools
functools
is another standard Python library that requires no additional installation. We have used several functions from this library in earlier chapters:
lru_cache
for memoizationreduce
for the map-reduce patternpartial
for creating partial functions
Get hands-on with 1200+ tech skills courses.