Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #31631

Python Web Frameworks PEP8 Consistency

From Andriy Kornatskyy <andriy.kornatskyy@live.com>
Subject Python Web Frameworks PEP8 Consistency
Date 2012-10-18 15:47 +0300
Newsgroups comp.lang.python
Message-ID <mailman.2427.1350564521.27098.python-list@python.org> (permalink)

Show all headers | View raw


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
 		 	   		  

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Python Web Frameworks PEP8 Consistency Andriy Kornatskyy <andriy.kornatskyy@live.com> - 2012-10-18 15:47 +0300

csiph-web