[Python-projects] is class inheritance supposed to be supported in pylint 0.14.0 ?

Marc 'BlackJack Rintsch marc at rintsch.de
Fri May 16 08:54:12 CEST 2008


On Thursday 15 May 2008, Tim Black wrote:
> Hi. I've been using pylint more and more lately, and I think it's
> great! I do have one problem with it though, and that is that it
> doesn't seem to understand names inherited from a parent class,
> giving many false-positive E1101 errors. The version I'm using is
> 0.14.0 - is this version supposed to support class inheritance?

Can you give a short example!?  This works for me::

class A:
    spam = 42
    def __init__(self):
        self.eggs = 23

class B(A):
    def foo(self):
        print self.spam, self.eggs

Ciao,
	Marc 'BlackJack' Rintsch
-- 
“Time is like a drug.  Too much of it kills you.”
                   -- Terry Pratchett, Small Gods
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.logilab.org/pipermail/python-projects/attachments/20080516/3193bcbb/attachment.pgp 


More information about the Python-Projects mailing list