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


Groups > comp.lang.python > #31631

Python Web Frameworks PEP8 Consistency

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <andriy.kornatskyy@live.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.006
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; 'frameworks': 0.05; 'framework.': 0.07; 'important,': 0.07; 'trailing': 0.07; 'welcome.': 0.07; 'python': 0.09; 'represents': 0.15; 'pep8': 0.16; 'written.': 0.16; 'code.': 0.20; 'to:name :python-list@python.org': 0.20; 'thanks.': 0.21; 'errors': 0.23; 'lines': 0.28; 'consistency': 0.29; 'whitespace': 0.29; 'source': 0.29; 'framework': 0.30; 'url:2012': 0.30; 'error': 0.30; 'code': 0.31; 'comments': 0.33; 'from:addr:live.com': 0.33; 'to:addr :python-list': 0.33; 'but': 0.36; 'too': 0.36; 'to:addr:python.org': 0.39; 'between': 0.63; 'more': 0.63; 'url:blogspot': 0.64; 'total': 0.65; 'url:10': 0.65; 'ratio': 0.91; 'charset:windows-1251': 0.97
X-Originating-IP [194.44.213.194]
From Andriy Kornatskyy <andriy.kornatskyy@live.com>
To "python-list@python.org" <python-list@python.org>
Subject Python Web Frameworks PEP8 Consistency
Date Thu, 18 Oct 2012 15:47:33 +0300
Importance Normal
Content-Type text/plain; charset="windows-1251"
Content-Transfer-Encoding quoted-printable
MIME-Version 1.0
X-OriginalArrivalTime 18 Oct 2012 12:47:33.0625 (UTC) FILETIME=[BE4A3E90:01CDAD2E]
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2427.1350564521.27098.python-list@python.org> (permalink)
Lines 27
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1350564521 news.xs4all.nl 6923 [2001:888:2000:d::a6]:39287
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:31631

Show key headers only | 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