average wrote: > It seems that the frustration with super revolves around how Python > currently conflates (as well as many users) two very different types > of inheritance, both "is-a" and "has-a" (or compositional) > inheritance. Unfortunately, Python assists this confusion because the > language doesn't provide a distinct enough way to differentiate > between them.
has-a should be modelling with attributes, not inheritance. The latter relationship should always mean is-a (even for mixins). Cheers, Nick. -- Nick Coghlan | [EMAIL PROTECTED] | Brisbane, Australia --------------------------------------------------------------- http://www.boredomandlaziness.org _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com