On Sep 26, 8:02 am, "Gabriel Genellina" <gagsl-...@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).
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to