O'Reilly logo

NumPy Cookbook - Second Edition by Ivan Idris

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Performing static analysis with Pychecker

Pychecker is an old, static analysis tool. It is not very actively developed, but it's fast and good enough to mention here. The last version at the time of writing this book was 0.8.19, and it was last updated in 2011. Pychecker tries to import each module and process it. It then searches for issues such as passing an incorrect number of parameters, incorrect format strings using non-existing methods, and other problems. In this recipe, we will again analyze code, but this time with Pychecker.

How to do it...

  1. Download the tar.gz from Sourceforge (http://pychecker.sourceforge.net/). Unpack the source archive and run the following command:
    $ python setup.py install
    

    Alternatively, install Pychecker using ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required