Re: [Python-Dev] single dispatch for instance methods

2016-10-16 Thread Tim Mitchell
An interesting idea, however from my point of view in methoddispatch there is no dispatching on the self argument at all. Overriding methods simply allows your subclass to have a different dispatch table for a method than the super class. This happens when the class is created, not when the functi

Re: [Python-Dev] single dispatch for instance methods

2016-10-16 Thread Aric Coady
On Oct 14, 2016, at 8:49 AM, python-dev-requ...@python.org wrote: > Date: Fri, 14 Oct 2016 14:11:18 +1300 > From: Tim Mitchell > 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/py

Re: [Python-Dev] single dispatch for instance methods

2016-10-13 Thread Emanuel Barry
Mitchell Sent: Thursday, October 13, 2016 9:11 PM To: python-dev@python.org Subject: [Python-Dev] single dispatch for instance methods 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

[Python-Dev] single dispatch for instance methods

2016-10-13 Thread Tim Mitchell
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-Se