python's OOP question

neoedmund neoedmund at gmail.com
Sun Oct 15 23:29:53 EDT 2006


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?


Ben Finney wrote:
> [Please don't top-post above the text to which you're replying.]
>
> "neoedmund" <neoedmund at gmail.com> writes:
>
> > I'm trying to achieve a higher level of "reusability". Maybe it
> > cannot be done in python? Can anybody help me?
>
> What, specifically, are you trying to achieve? What problem needs
> solving?
>
> --
>  \     "If you're a horse, and someone gets on you, and falls off, and |
>   `\      then gets right back on you, I think you should buck him off |
> _o__)                                     right away."  -- Jack Handey |
> Ben Finney




More information about the Python-list mailing list