Needed: Real-world examples for Python's Cooperative Multiple Inheritance

John Nagle nagle at animats.com
Thu May 19 00:24:12 EDT 2011


On 5/4/2011 11:36 AM, Ethan Furman wrote:
> Raymond Hettinger wrote:
>> I'm writing-up more guidance on how to use super() and would like to
>> point at some real-world Python examples of cooperative multiple
>> inheritance.

    Multiple inheritance in Python is so badly designed that it
probably should not be used in production code.

    Generalizing multiple inheritance from a tree to a directed
acyclic graph is usually a mistake.
			
				John Nagle



More information about the Python-list mailing list