singledispatch for instance methods
![](https://secure.gravatar.com/avatar/d1778666c0518e6994ed16caaba7ae32.jpg?s=120&d=mm&r=g)
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?
![](https://secure.gravatar.com/avatar/fba529808415c562f826c85b9fe62991.jpg?s=120&d=mm&r=g)
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/
![](https://secure.gravatar.com/avatar/fba529808415c562f826c85b9fe62991.jpg?s=120&d=mm&r=g)
Any updates with a singledispatch for methods? On Tue, Sep 20, 2016, 5:49 PM Bar Harel <bzvi7919@gmail.com> wrote:
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/
participants (2)
-
Bar Harel
-
Tim Mitchell