PyChecker - a python source code bug finder
Robin Becker
robin at jessikat.fsnet.co.uk
Fri Apr 13 05:50:15 EDT 2001
In article <3AD5C5B1.98ACEFB3 at metaslash.com>, Neal Norwitz
<neal at metaslash.com> writes
>Robin Becker wrote:
>
...
>If you send me the code (preferabbly a small test case), I'll take a look
>and try to fix.
OK I have the following dummy things
#b.py
''
class B:
'base class'
member = 0
def __init__(self):
self.x=1
#a.py
''
from b import B
class A(B):
'derived class'
member = 1
checker on a.py produces
C:\Python\pyChecker>python checker.py a.py
Processing a...
Warnings...
b.py:0 No __init__() in subclass (A)
C:\Python\pyChecker>
--
Robin Becker
More information about the Python-list
mailing list