[Python-ideas] RFC: Multiple Dispatch
Łukasz Langa
lukasz at langa.pl
Fri Aug 15 20:38:02 CEST 2014
Ah, that’s right, I meant singledispatch. Sorry for the confusion! :)
--
Best regards,
Łukasz Langa
WWW: http://lukasz.langa.pl/
Twitter: @llanga
IRC: ambv on #python-dev
On Aug 15, 2014, at 11:33 AM, Matthew Rocklin <mrocklin at gmail.com> wrote:
> I assume that Lukasz is referrring to singledispatch? multipledispatch doesn't yet have that level of adoption as far as I'm aware.
>
>
> On Fri, Aug 15, 2014 at 11:25 AM, Łukasz Langa <lukasz at langa.pl> wrote:
> It has over 25k downloads from PyPI per month. It’s used in OpenStack’s Nova. It’s used at Facebook as part of a deadline based, resource aware, dependency based, fault tolerant scheduler.
>
> --
> Best regards,
> Łukasz Langa
>
> WWW: http://lukasz.langa.pl/
> Twitter: @llanga
> IRC: ambv on #python-dev
>
>
>
> On Aug 15, 2014, at 11:01 AM, Guido van Rossum <guido at python.org> wrote:
>
>> Please do write about non-toy examples!
>>
>>
>> On Fri, Aug 15, 2014 at 10:55 AM, Matthew Rocklin <mrocklin at gmail.com> wrote:
>> 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.
>>
>>
>>
>>
>> --
>> --Guido van Rossum (python.org/~guido)
>> _______________________________________________
>> Python-ideas mailing list
>> Python-ideas at python.org
>> https://mail.python.org/mailman/listinfo/python-ideas
>> Code of Conduct: http://python.org/psf/codeofconduct/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140815/d1d2bfec/attachment.html>
More information about the Python-ideas
mailing list