Remove multiple inheritance in Python 3000

Carl Banks pavlovevidence at gmail.com
Tue Apr 22 12:26:47 EDT 2008


On Apr 22, 11:10 am, "Diez B. Roggisch" <de... at nospam.web.de> wrote:
> > 2. Java interfaces solve a different problem than MI (used properly)
> > does: interfaces are there to make types polymorphic, whereas
> > inheritance's main use is to share behavior.
>
> But the *goal* of the polymorphy is mainly to have shared behavior.

Not at all.  The goal of polymorphism is to have objects of different
types usable in the same situation.  Two such classes might share some
behavior, but they don't have to.


Carl Banks



More information about the Python-list mailing list