a Python Static Analyzer

Mark Lawrence breamoreboy at yahoo.co.uk
Sun Dec 15 16:00:25 EST 2013


On 15/12/2013 20:25, arie.lakeman at gmail.com wrote:
> On Sunday, 15 December 2013 02:36:56 UTC, Chris Rebert  wrote:
>> On Sat, Dec 14, 2013 at 5:31 PM, Dan Stromberg <drsalists at gmail.com> wrote:
>>
>>> Where does PySonar2 sit in the spectrum from pylint
>>
>>> (thorough/pedantic) to pyflakes (relaxed/few-false-positives)?
>>
>>>
>>
>>> I use pylint and pyflakes a lot, and I've heard that PyChecker sits in
>>
>>> between them on this axis.
>>
>>
>>
>> My impression is that PyChecker has been abandoned.
>>
>> The last commit in its SourceForge CVS repo is from 2008, and `pip
>>
>> install PyChecker` fails.
>>
>>
>>
>> Cheers,
>>
>> Chris
>
> Hi Chris,
>
> I can't comment on the comparative sophistication of PySonar2 to pylint and pyflakes, my experience of those two projects is as code quality tools, whereas I've been using PySonar2 for things along the lines of indexing code at a more semantic level, something I'm satisfied with.
>
> Here's a comment on a reddit post about PySonar a month ago
>
> http://www.reddit.com/comments/1piusr
>
> `
> Yin Wang is awesome and his work on programming languages and type inference is super impressive. We've been using his PySonar (v1) to build a global index of Python code and it works far better than we or anyone would have expected, for a dynamic language.
> Here are some examples of what PySonar can do:
> Finding everywhere a function is used
> Python stdlib, sorted by most-used functions
> All usages of the Django URL render_to_response function
> All usages of the Flask @app.route decorator
> This is all done using PySonar v1-based static analysis on Python code. PySonar v2 is even better.
> `
>
> I've referred Yin to this google group post.
>

Looks like very good work, thanks for the data.

But please note that I'm reading this via email, not google groups.  If 
you'd care to look above, you'll observe the double line spacing that 
gets inserted into everything that we see from gg, unless you read and 
action this https://wiki.python.org/moin/GoogleGroupsPython  If you'd be 
kind enough to do this it would be greatly appreciated by many people 
here.  TIA.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence




More information about the Python-list mailing list