At last! Haven't used single dispatch exactly because of that. Thank you savior!
+1


On Tue, Sep 20, 2016, 6:03 AM Tim Mitchell <tim.mitchell@leapfrog3d.com> wrote:
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/