Skip to content

Functools practice problems in Python

Difficulty:
Category:
Tag:

Showing 6 of 6

Status Title Difficulty
cached_property: compute once, release with the instance, invalidate on demand Medium
cache: memoised edit distance behind a validated wrapper Medium
lru_cache on a method: fix the unbounded instance leak Hard
partial: a signature-preserving retrier, and the 3.14 descriptor change Medium
singledispatch: a JSON encoder callers can extend from outside Hard
total_ordering: SemVer, where pre-release sorts before release Medium