[Python-Dev] single dispatch for instance methods

Tim Mitchell tim.mitchell at leapfrog3d.com
Thu Oct 13 21:11:18 EDT 2016


Hi All,

It would be nice if the @singledispatch decorator worked on instance
methods.
I have a reference implementation on pypi that does this (
https://pypi.python.org/pypi/methoddispatch).

I posted this message to python ideas a month ago (
https://mail.python.org/pipermail/python-ideas/2016-September/042466.html)
and got 100% support from 1 response.

Not sure if I should proceed with writing a PEP.
I am happy to do all the work if I know it will be accepted.

Cheers
Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20161014/49373813/attachment.html>


More information about the Python-Dev mailing list