Movatterモバイル変換
[0]ホーム
Python 2.1 RC - PyChecker
Neal Norwitzneal 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 argumentsMimeWriter.py:117 Function (startbody) uses named argumentsStringIO.py:187 Local variable (here) not usedUserString.py:137 Base class (UserString.UserString) __init__() not calledaifc.py:181 Local variable (math) not usedasynchat.py:99 No method (collect_incoming_data) foundasynchat.py:112 No method (found_terminator) found(2 methods documented, but should add method and raise exception?)asyncore.py:155 Local variable (l) not usedaudiodev.py:214 No global (BUFFERSIZE) foundbdb.py:220 Local variable (bp) not usedcgi.py:743 Base class (UserDict.UserDict) __init__() not calledcgi.py:843 Local variable (traceback) not usedchunk.py:109 No attribute (chunk_size) found(should be chunksize)fileinput.py:292 Function (input) uses named argumentsgetpass.py:29 Local variable (getpass) not usedgopherlib.py:172 Local variable (port) not usedgzip.py:276 Local variable (orig_size) not usedihooks.py:494 Function (import_it) uses named argumentsihooks.py:498 Function (import_it) uses named argumentsimaplib.py:1019 No global (j) foundlocale.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) foundmailbox.py:23 No attribute (start) foundmailbox.py:29 No method (_search_start) foundmailbox.py:34 No method (_search_end) found(_search_*() used in subclasses, add method and raise exception?)mailbox.py:106 No method (_isrealfromline) foundmailbox.py:260 Local variable (time) not usedmhlib.py:651 Local variable (messages) not usednetrc.py:13 No global (file) found(should be filename)nturl2path.py:45 Local variable (string) not usedpstats.py:188 Local variable (std_list) not usedpyclbr.py:206 Local variable (imports) not usedpydoc.py:170 Base class (exceptions.Exception) __init__() not calledrfc822.py:607 Local variable (expectaddrspec) not usedrobotparser.py:234 Local variable (sys) not usedsgmllib.py:178 No global (SGMLParserError) found(should be SGMLParseError?)shlex.py:99 Local variable (tok) not usedsmtpd.py:312 No global (UnimplementedError) foundsmtpd.py:375 Local variable (paths) not usedsndhdr.py:87 Local variable (hdr_size) not usedsndhdr.py:134 Local variable (style) not usedsre_parse.py:286 Local variable (here) not usedthreading.py:547 Local variable (random) not usedthreading.py:611 Local variable (time) not usedtoken.py:85 Local variable (string) not usedunittest.py:675 Local variable (opts) not usedurllib.py:1147 Local variable (x) not usedurllib2.py:450 No global (error_302_dict) found(needs req.?)urllib2.py:630 No attribute (parent) foundurllib2.py:1053 No global (OpenerDirectory) foundurlparse.py:58 Local variable (path) not usedwebbrowser.py:77 No global (ret) found
More information about the Python-listmailing list
[8]ページ先頭