pychecker question
Markus Jais
info at mjais.de
Mon Feb 3 16:55:17 EST 2003
hello
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()
mc.func("bird")
#print mc.eagle
mc.owl = "eagle owl"
#print var
#var = "hawk"
================================
I used it like this:
$ pychecker errors.py
(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 ???
markus
More information about the Python-list
mailing list