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 1400+ tech skills courses.