Re:Why Julia
by fanf2 on Saturday February 23, 2019 @01:43PM
(#19234816)
Multiple dispatch has to be coded by hand in Python, it isn’t a feature of the language.
[ Parent
| on HN ]
Python 3.7 added the ability to use type annotations with the @functools.singledispatch decorator which lets you write functions in a multi-dispatch manner.
As the name suggests, that lets you write functions in a single-dispatch manner. That is different from multiple-dispatch.