We can't find the internet
Attempting to reconnect
Something went wrong!
Attempting to reconnect
Protocol practice problems in Python
Difficulty:
Category:
Tag:
Showing 9 of 9
| Status | Title | Difficulty | Category | Tags |
|---|---|---|---|---|
| Callback protocols: closing the Callable[..., Any] hole | Medium | Framework |
|
|
| ExitStack: all-or-nothing acquisition of N resources | Hard | Primitives |
|
|
| Placement 2/6: Protocol vs ABC | Easy | Primitives |
|
|
| Protocols: what structural subtyping actually asserts | Easy | Primitives |
|
|
| @runtime_checkable checks names, not types | Medium | Primitives |
|
|
| runtime_checkable is presence, not a signature | Hard | Framework |
|
|
| Subclassing a Protocol: what Python will and will not stop you doing | Medium | Primitives |
|
|
| The protocol attribute invariance trap | Hard | Primitives |
|
|
| Variance in generic protocols | Hard | Primitives |
|