pylint
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Mod-Python > pylint




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    pylint  
Jim Gallacher


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-21-06 12:11 AM

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







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:53 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register