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 (
https://stackoverflow.com/questions/24601722/how-can-i-use-functools-singledispatch-with-instance-methods
,
https://stackoverflow.com/questions/24063788/python3-singledispatch-in-class-how-to-dispatch-self-type/24064102
) 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.
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to