top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Is there a tool to help find bugs or perform static analysis in Python?

+3 votes
692 views
Is there a tool to help find bugs or perform static analysis in Python?
posted Nov 30, 2014 by Amit Kumar Pandey

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+1 vote
 
Best answer

Try PyChecker, it is a static analysis tool that finds bugs in Python source code and much more.

PyChecker Website: http://pychecker.sf.net

PyLint is another tool that checks if a module satisfies a coding standard, and also makes it possible to write plug-ins to add custom features. In addition to the bug checking that PyChecker performs, PyLint offers some additional features such as checking line length, whether variable names are well-formed according to your coding standard, whether declared interfaces are fully implemented, and more.

PyLint website: http://www.logilab.org/projects/pylint

answer Dec 1, 2014 by Salil Agrawal
+1 vote

In addition to static checkers , for runtime debugging you can use the pdb tool.

It has all the standard breakpoint/watchpoint and step running features to analyse the python code in runtime at a granular level.

answer Dec 2, 2014 by Shyam Purkayastha
Similar Questions
+3 votes

Please let me know any open source c/c++ static code analysis tool, I need to use that tool for stataic analysis

0 votes

I want to develop a psychocomputational analysis toolkit in python for studying real-time neuroimaging data from focused
ultrasound/brain-to-brain interfaces.

Any suggestions where to look for cool projects in github? :)

+2 votes

Also is there a way to detect if the user presses a key in Python that works on most OS's? I've only seen 1 method and that only works in Python 2.6 and less. If you get the key, can you store it in a variable?

+2 votes

Is there a way to use pdb to debug Google apps written in Python? When I start the development system to run the app "test" like this -

'./google_appengine/dev_appserver.py ./test'

  • I'd like to send the program into debug. I couldn't see anything in the documentation how to do this. If I do this - python -mpdb './google_appengine/dev_appserver.py' './test'
  • then dev_appserver.py goes into debug but doesn't know anything about "test".
...