3 ms·
>python classes are open so you can just add a method to a concrete class to get single-dispatch if that's all you need. Except then your method shares a names
by eurleif 13y ago
>python classes are open so you can just add a method to a concrete class to get single-dispatch if that's all you need.
Except then your method shares a namespace with all the other methods defined on the class, which is ugly, and can cause clashes.