Skip to content

Api Design practice problems in Python

Difficulty:
Category:
Tag:

Showing 13 of 13

Status Title Difficulty
Accept broad, return narrow: group_by and merge_counts Medium
Capstone: the upload that cannot be misused Hard
defaultdict: group rows, hand back a plain dict Easy
Deprecating public API: @warnings.deprecated Medium
Exception hierarchies as API design Medium
Generic partition and chunk Medium
kw_only, KW_ONLY and the inheritance ordering wall Medium
@overload: one implementation, several honest signatures Hard
Positional-only `/` and keyword-only `*` Medium
Producer, Consumer, Cell: variance by member set Hard
The single-consumption contract Medium
What does this module actually export? Hard
Why list[Dog] is not a list[Animal] Medium