A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-December/018873.html below:

[Python-Dev] pychecker on 2.2 current

[Python-Dev] pychecker on 2.2 current [Python-Dev] pychecker on 2.2 currentGuido van Rossum guido@python.org
Wed, 05 Dec 2001 21:35:25 -0500
> > 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,

I stand corrected.  I think this was the case for an older version?

> but it isn't perfect.  If there is code like:
> 
> 	import sys
> 	if sys.platform == 'win32':
> 		def x(a, b): pass
> 	else:
> 		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.

Hm, I would call that warning correct. :-)

--Guido van Rossum (home page: http://www.python.org/~guido/)



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4