Python Web Frameworks PEP8 Consistency

Andriy Kornatskyy andriy.kornatskyy at live.com
Thu Oct 18 08:47:33 EDT 2012


The code is read much more often than it is written. The PEP8 guidelines are intended to improve the readability of code. We will take a look at web frameworks source code readability (bottle, cherrypy, circuits, django, flask, pyramid, tornado, web.py, web2py and wheezy.web):

http://mindref.blogspot.com/2012/10/python-web-pep8-consistency.html

The ratio between a web framework total python source lines to PEP8 errors found represents PEP8 error rate in respectful framework.

Readability counts, no doubt, but readability consistency is important, it is equally important to know when to be inconsistent. The report makes excuse for the following:

E501 line too long (> 79 characters)
E231 missing whitespace after ',:'
W291 trailing whitespace
W293 blank line contains whitespace

Comments or suggestions are welcome.

Thanks.

Andriy Kornatskyy
 		 	   		  


More information about the Python-list mailing list