Code

Programming Languages: Python

License: BSD License

Repositories

browse code, statistics cvs -d:pserver:anonymous@pychecker.cvs.sourceforge.net:/cvsroot/pychecker login

cvs -z3 -d:pserver:anonymous@pychecker.cvs.sourceforge.net:/cvsroot/pychecker co -P modulename

Show:

What's happening?

  • bug - Using the return value from (.append) which is alwa

    Here's the source code as well as output http://pastebin.com/0gBAN04N.

    2012-04-27 03:33:09 PDT by doda999

  • Decorated function not analyzed

    In the attached script, f is a decorated function with a reference to an undefined variable (p) and which uses the module sys. Running PyChecker gives: Processing module a (a)... Warnings... a.py:2: Imported module (sys) not used as though it had completely ignored the decorated function. Removing the decorator raises the expected warning. PyChecker 0.8.19.

    2012-04-17 07:58:15 PDT by fluorhydric

  • Does not distinguish function (object) vs. return in Lambda

    This code: ops = {} fdel = ops.get('fdel', lambda self: delattr(self, '')) Produces this warningf: utils.py:589: Using the return value from (delattr) which is always None The lambda is returning the function delattr(self, ''), not the return value of invoking that function.

    2012-04-02 12:46:28 PDT by cmj

  • List comprehension inside dict() raises warning

    Hi, When using both zip and a list comprehension inside a dict(), pychecker raises a warning which shouldn't be there. For example: b = dict(zip([1], [x for x in [1]])) Daniel.

    2012-03-28 03:17:35 PDT by fluorhydric

  • Spurious "conditional statement with a constant value"?

    Pychecker issues this warning: Using a conditional statement with a constant value (create) for this statement: "action:" + ((exists and "create") or ((not exists) and "delete"))]) To me, this expression seems to be idiomatic Python using the fact that Python returns the last evaluated item from a logical expression. Its purpose...

    2012-02-11 11:45:59 PST by kwhitefoot

  • Python 2.6.4 TypeError: __- pychecker breaks on ''.decode -

    Pychecker 0.8.19 breaks otherwise working code in python 2.6.4. Note I installed 0.8.19 and no other pychecker versions on this machine but pychecker --version incorrectly reports being 0.8.18. I'm attaching a reduced test case 'bug.py' to demonstrate the issue. Here is the console output. The second run (without the error) had line 3 commented out (the pychecker import). PS...

    2012-01-06 04:16:53 PST by mulander

Our Numbers