Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Python
/
Single-dispatch generic functions
What happens when two registered, unrelated ABCs both recognize an argument class and nei…
from Single-dispatch generic functions
Python 3.14
advanced
1 min
What happens when two registered, unrelated ABCs both recognize an argument class and neither is more specific?
The call raises RuntimeError for ambiguous dispatch.
The implementation registered last always wins.
The implementation registered first always wins.
Both implementations run in registration order.
Check
Ask AI about this kata
Report an error
next kata
How should singledispatchmethod and classmethod be stacked on the generic method?
Quiz
A new version is available
Reload