[PyKDE] Re: [PATCH] Abstract methods cause derived classes to be marked abstract

Matt Newell newellm at blur.com
Fri Oct 13 22:51:28 BST 2006

On Friday 13 October 2006 13:20, Christophe Cavalaria wrote:
> Matt Newell wrote:
> > If class A has an abstract method, it is marked as an abstract class.
> > This is
> > good.  If class B inherits from class A, but doesn't have any abstract
> > methods of it's own, it is still marked as abstract, that is not good.  A
> > class should only be marked abstract if it directly has an abstract
> > method, or is marked abstract with /Abstract/.
> >
> > Patch attached.
> >
> > Matt
> What language is that? In C++, if A has an abstract method called foo and B
> inherits from A without defining foo, then B is abstract too.
Yes, but currently with sip if B does implement foo, B is still marked as 
abstract. So you currently cannot instanciate a class if any of it's 
ancestors have abstract methods.

With this patch you can still mark the class as /Abstract/ if it really is 


More information about the PyQt mailing list