[Tutor] Modify inherited methods
Steven D'Aprano
steve at pearwood.info
Wed Apr 28 02:09:31 CEST 2010
On Wed, 28 Apr 2010 08:08:12 am Steven D'Aprano wrote:
> Some people argue that you must call dict.__init__ even though it
> doesn't do anything. Their reasoning is, some day its behaviour might
> change, and if you don't call it in your subclass, then your class
> may break. This is true, as far as it goes, but what they say is that
> if the behaviour of dict.__init__ changes, and you *do* call it, your
> class may still break. (This is why dict is unlikely to change any
> time soon.)
Oops, left out a word. I meant to say "what they *don't* say is...".
--
Steven D'Aprano
More information about the Tutor
mailing list