[Python-ideas] singledispatch for methods

Tim Mitchell tim.mitchell.chch at gmail.com
Tue Mar 26 16:05:49 EDT 2019

Hi All,

functools.singledispatch does not work on methods.  There are 2 packages
that do this for methods one on GitHub only
https://gist.github.com/adamnew123456/9218f99ba35da225ca11 and my pypi
package https://pypi.org/project/methoddispatch/.
There are also a couple of stack overflow posts about it (
) with about 60 votes between them.

Is it time to add singledispatch for methods to the core library?
If so, would the methoddispatch implementation suffice or are there changes
you would like made?

Thanks for your time.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20190327/9a3d0f4d/attachment.html>

More information about the Python-ideas mailing list