2 ms·
Singledispatch is old, dates back to py2: https://docs.python.org/3/library/functools.html#functools.singledispatch https://docs.python.org/3/library/functools.
by danmur 5y ago
Singledispatch is old, dates back to py2: https://docs.python.org/3/library/functools.html#functools.singledispatch https://docs.python.org/3/library/functools.html#functools.s...
I definitely agree that multiple dispatch is a lot harder :). But most of the examples in the article didn't need it, and it would have been appropriate I think to show equivalent code in Python. All that article did was make me think the author didn't know Python very well.
There are several libraries for multiple dispatch too, for e.g. https://github.com/wesselb/plum https://github.com/wesselb/plum