python's OOP question

Gregor Horvath gh at gregor-horvath.com
Mon Oct 16 07:21:56 CEST 2006


neoedmund schrieb:
> python use multiple inheritance.
> but "inheritance" means you must inherite all methods from super type.
> now i just need "some" methods from one type and "some" methods from
> other types,
> to build the new type.
> Do you think this way is more flexible than tranditional inheritance?
> 

Probably your problem is better solved with delegation instead of
inheritance.

-- 
  Servus, Gregor



More information about the Python-list mailing list