[Python-ideas] RFC: Multiple Dispatch

Antoine Pitrou antoine at python.org
Sat Aug 16 15:34:51 CEST 2014


Le 15/08/2014 14:01, Guido van Rossum a écrit :
> Please do write about non-toy examples!

Are you looking for examples using the multipledispatch library, or 
multiple dispatch in general?

As for multiple dispatch in general, Numba uses something which is 
morally one in order to select the right specialization of, say, an 
operator (for example to choose amongst '+ between int and int', '+ 
between numpy.datetime64 and numpy.timedelta64', '+ between 
numpy.timedelta64 and numpy.timedelta64', etc.).

Regards

Antoine.




More information about the Python-ideas mailing list