[Python-Dev] pychecker on 2.2 current
Wed, 05 Dec 2001 21:26:15 -0500
Guido van Rossum wrote:
> > I thought pychecker would complain, but it's happy too. :-)
> But isn't that because the new code is all at the module-global level,
> which pychecker doesn't "see"? Or have you fixed that yet?
pychecker does "see" all code at the module level, but it isn't perfect.
If there is code like:
if sys.platform == 'win32':
def x(a, b): pass
def x(a): pass
The following incorrect warning is produced:
t2.py:5: Redefining attribute (x) original line (3)
Because both versions of the function x() are seen.