pychecker question

Markus Jais info at
Mon Feb 3 22:55:17 CET 2003

I have just downloaded pychecker and it seems to be a very interesting 
product but I have a question:

this is my code:
#!/usr/bin/env python

#print sys.argv[0]

class MyClass:

        def __init__(self):
                self.x = ""
                #return 42

        def func(self, arg1):
                print "%d |" % (arg1)

        def func(self, str):
                print str + "|"

mc = MyClass()

#print mc.eagle
mc.owl = "eagle owl"

#print var
#var = "hawk"

I used it like this:
$ pychecker

(I have python 2.2, pychecker 0.8.12 on a Redhat 7.3 machine)

pychecher correctly reports that there is a problem with the "func" method
because it is redefined.

but all errors that are commented out and which are reported according to 
the pychecker README file are also report by the Python interpreter without 
using pychecker.

is there a list with all the errors pychecker reports that are also reportet 
by the Python interpreter ???


More information about the Python-list mailing list