Re: Unintended inheritance

2006-02-24 Thread Kay Schluehr
Alex Martelli wrote: > Kay Schluehr <[EMAIL PROTECTED]> wrote: >... > > To prevent unintended inheritance C# introduced a relatively complex > > contract semantics using three modifiers virtual, override and new. Is > > this issue serious for Python progra

Re: Unintended inheritance

2006-02-20 Thread Alex Martelli
Kay Schluehr <[EMAIL PROTECTED]> wrote: ... > To prevent unintended inheritance C# introduced a relatively complex > contract semantics using three modifiers virtual, override and new. Is > this issue serious for Python programmers, in particular for those > working in larger

Unintended inheritance

2006-02-20 Thread Kay Schluehr
The problem of unintended inheritance is typical for OO frameworks and can be explained as follows. Given a class Foo implemented by Alice and a derived class Bar of Foo implemented by Bob. Bar implements a method f. In a later version of Foo Alice also implements a method f. The f of Bar