[Python-ideas] RFC: Multiple Dispatch

Ethan Furman ethan at stoneleaf.us
Fri Aug 15 19:34:12 CEST 2014


On 08/15/2014 10:28 AM, Guido van Rossum wrote:
>
> Are there good uses of singledispatch in the wild even?

Well, I don't know if it's a "good use", but I have used singledispatch to override 'float' in certain modules so that I 
can say, for example, float(DateTime.Time) or float("time string").

It's really quite handy.

--
~Ethan~


More information about the Python-ideas mailing list