On Tue, Aug 07, 2001 at 08:37:59AM -0400, Guido van Rossum wrote: > I just saw another announcement of PyChecker. It's definitely growing > to become a very useful (if chatty :-) tool! How about we attempt to > fix at least all the real bugs it detects in the standard library, > such as the typos in urllib2.py ... Please help! Well, I'm not sure how you're running it, but Python 2.2 is breaking PyChecker :-) First off, I get a ton of these: /home/thomas/python/python-CVS/dist/src/Lib/copy.py:303: Object (l) has no attribute (append) where (from the code) 'l' is obviously a list. The problem is this: _BUILTINS_ATTRS = { types.StringType : dir(''), types.TypeType : dir(type(0)), types.ListType : dir([]), [etc] I guess that should now be def compat_dir(o): return dir(o) or dir(type(o)) # Or perhaps just a switch on python version _BUILTINS_ATTRS = { types.StringType : compat_dir(''), types.TypeType : compat_dir(type(0)), [etc] Looking at the error output, I suspect there's some more incompatibilities in there, including one that causes pychecker to stop processing a couple of modules. -- Thomas Wouters <thomas@xs4all.net> Hi! I'm a .signature virus! copy me into your .signature file to help me spread!
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