aleaxit at yahoo.com
Mon Jun 11 21:32:07 CEST 2001
"Courageous" <jkraska1 at san.rr.com> wrote in message
news:lc5aitoq6vpb376g9d405updvspkenhg4i at 4ax.com...
> >I've heard a number of folks claim that while inheritance is powerful,
> >it's often used where it need not to be, and that perhaps one should
> >think composition first.
> As an amusing side-node, Python objects, under the hood, use
> composition to build up their inheritance graph.
Given that those Python objects, 'under the hood', are implemented
in C (which doesn't offer inheritance), it would be truly amusing
if Python had managed to use inheritance anyway...:-)
More information about the Python-list