Questions to the FAQ
Josef Wolf
jw at raven.inka.de
Thu Jul 15 14:20:19 EDT 2004
Scott David Daniels wrote in <40f5c8c3$1 at nntp0.pdx.net>:
>> What am I missing here?
>
> You can't have a new-style class inherit from a classic class, nor can
> you have a new-style inherit from a classic class. So, the "style" of
========= =============
\ /
swapped here?
> a class (classic or new-style) that inherits from some other class is
> inherited.
>
> Here is a useful lie (lie in that there are tricky ways to avoid this):
> All new-style classes eventually inherit from the builtin class
> "object", none of the old-style classes are subclasses of object.
Mybe this one and ...
Stefan Seefeld wrote in <GNXIc.4283$F57.941 at nntp-post.primus.ca>:
> the example is about how an overridden method can call the base-class
> method. For both cases the same child/parent relationship is assumed.
> The difference is in the spelling of "call the base' class method",
> which, with new-style classes uses 'super'.
... this one could be added to the FAQ?
Thanks!
--
Please visit and sign http://petition-eurolinux.org and http://www.ffii.org
-- Josef Wolf -- jw at raven.inka.de --
More information about the Python-list
mailing list