Apache Mod-Python - pylint

This is Interesting: Free IT Magazines  
Home > Archive > Apache Mod-Python > May 2006 > pylint





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author pylint
Jim Gallacher

2006-05-20, 7:11 pm

I used pylint to assist in cleaning up the indentation mess in util.py.
I ended up checking all our lib/python/mod_python/*.py code, and
needless to say the results were.... edifying. The output is rather
extensive, with a lot noise regarding missing docstrings and the like,
but I suspect combing through the results might reveal some potential
gold... or perhaps the exact opposite of gold.

I think it would be good to adopt a policy of pylinting (probably not a
word, but I like how it sounds ) our code on a regular basis.

FYI, if you want to check mod_python.Session you'll need to comment out
"global rnd_iter" around line 73 in _get_generator(). The use of global
here exposes a known bug in pylint which causes it hit the maximum
recursion limit and barf. Just make sure you uncomment that line before
checking in the code. ;)

Jim


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com