Python 2.1 RC - PyChecker

Neal Norwitz neal at metaslash.com
Sun Apr 15 03:38:34 EDT 2001


I've run the CVS version of PyChecker (http://pychecker.sourceforge.net)
against Python 2.1 RC1.  Below are the real or possible problems I found.

Some of the "not used" could be real errors, most are not.
All "uses named arguments" can be safely ignored.
"No global"s are definitely problems AFAICT (except 1 which can't be reached).

Neal
--

MimeWriter.py:108 Function (addheader) uses named arguments
MimeWriter.py:117 Function (startbody) uses named arguments
StringIO.py:187 Local variable (here) not used
UserString.py:137 Base class (UserString.UserString) __init__() not called
aifc.py:181 Local variable (math) not used
asynchat.py:99 No method (collect_incoming_data) found
asynchat.py:112 No method (found_terminator) found
	(2 methods documented, but should add method and raise exception?)
asyncore.py:155 Local variable (l) not used
audiodev.py:214 No global (BUFFERSIZE) found
bdb.py:220 Local variable (bp) not used
cgi.py:743 Base class (UserDict.UserDict) __init__() not called
cgi.py:843 Local variable (traceback) not used
chunk.py:109 No attribute (chunk_size) found
	(should be chunksize)
fileinput.py:292 Function (input) uses named arguments
getpass.py:29 Local variable (getpass) not used
gopherlib.py:172 Local variable (port) not used
gzip.py:276 Local variable (orig_size) not used
ihooks.py:494 Function (import_it) uses named arguments
ihooks.py:498 Function (import_it) uses named arguments
imaplib.py:1019 No global (j) found
locale.py:273 No global (l) found
	(can't be reach, but could remove last else and always raise error)
mailbox.py:21 No attribute (stop) found
mailbox.py:23 No attribute (start) found
mailbox.py:29 No method (_search_start) found
mailbox.py:34 No method (_search_end) found
	(_search_*() used in subclasses, add method and raise exception?)
mailbox.py:106 No method (_isrealfromline) found
mailbox.py:260 Local variable (time) not used
mhlib.py:651 Local variable (messages) not used
netrc.py:13 No global (file) found
	(should be filename)
nturl2path.py:45 Local variable (string) not used
pstats.py:188 Local variable (std_list) not used
pyclbr.py:206 Local variable (imports) not used
pydoc.py:170 Base class (exceptions.Exception) __init__() not called
rfc822.py:607 Local variable (expectaddrspec) not used
robotparser.py:234 Local variable (sys) not used
sgmllib.py:178 No global (SGMLParserError) found
	(should be SGMLParseError?)
shlex.py:99 Local variable (tok) not used
smtpd.py:312 No global (UnimplementedError) found
smtpd.py:375 Local variable (paths) not used
sndhdr.py:87 Local variable (hdr_size) not used
sndhdr.py:134 Local variable (style) not used
sre_parse.py:286 Local variable (here) not used
threading.py:547 Local variable (random) not used
threading.py:611 Local variable (time) not used
token.py:85 Local variable (string) not used
unittest.py:675 Local variable (opts) not used
urllib.py:1147 Local variable (x) not used
urllib2.py:450 No global (error_302_dict) found
	(needs req.?)
urllib2.py:630 No attribute (parent) found
urllib2.py:1053 No global (OpenerDirectory) found
urlparse.py:58 Local variable (path) not used
webbrowser.py:77 No global (ret) found




More information about the Python-list mailing list