[Python-ideas] RFC: Multiple Dispatch

Matthew Rocklin mrocklin at gmail.com
Fri Aug 15 19:55:57 CEST 2014


I've definitely seen homegrown solutions like Alexander talks about in a
variety of projects.  It has popped up a few times in SymPy.

My implementation was influenced somewhat by Julia's solution which seems
fairly sober.  Multiple dispatch has demonstrated value in that community.

I used the multipledispatch library in a few of my projects.  I can provide
examples of where it's been helpful if desired.


On Fri, Aug 15, 2014 at 10:47 AM, Alexander Belopolsky <
alexander.belopolsky at gmail.com> wrote:

>
> On Fri, Aug 15, 2014 at 1:28 PM, Guido van Rossum <guido at python.org>
> wrote:
>
>> Are there good uses of singledispatch in the wild even?
>
>
> In one of my projects, I have a todo item to convert a homegrown
> {type:func} dictionary based dispatch to singledispatch.  It has been open
> for 5 months already.  I wouldn't be surprised if others had something
> similar: a good-enough (and probably buggy) solution that is not bad enough
> to justify adding extra dependency in 2.x or replacing with a 3.x only
> solution.
>
> Multiple dispatch is much harder to get right or even "good enough," so I
> don't think singledispatch popularity or lack thereof is a good predictor
> for multipledispatch.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140815/5ac26da7/attachment-0001.html>


More information about the Python-ideas mailing list