super() and multiple inheritance failure

Michele Simionato michele.simionato at gmail.com
Sat Sep 26 08:26:02 CEST 2009


On Sep 26, 8:02 am, "Gabriel Genellina" <gagsl-... at yahoo.com.ar>
wrote:
> If you decide at every invocation which method to call, it's a dispatcher;  
> you may use a dictionary to map each alternative to the function to be  
> invoked. If it only depends on the type of the argument, there is a hidden  
> gem in pkgutil (simplegeneric) that can help you.

And here is an example:

http://www.artima.com/weblogs/viewpost.jsp?thread=237764

(a lot of use case for multiple inheritance are better solved with
multimethods).



More information about the Python-list mailing list