At last! Haven't used single dispatch exactly because of that. Thank you savior!
+1
Hi All,_______________________________________________We have a modified version of singledispatch at work which works for methods as well as functions. We have open-sourced it as methoddispatch (pypi: https://pypi.python.org/pypi/methoddispatch).IMHO I thought it would make a nice addition to python stdlib.
What does everyone else think?
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/