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: 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 To: "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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 The code is read much more often than it is written. The PEP8 guidelines ar= e intended to improve the readability of code. We will take a look at web f= rameworks source code readability (bottle=2C=A0cherrypy=2C=A0circuits=2C=A0= django=2C=A0flask=2C=A0pyramid=2C=A0tornado=2C=A0web.py=2C=A0web2py and=A0w= heezy.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=2C no doubt=2C but readability consistency is important= =2C it is equally important to know when to be inconsistent. The report mak= es excuse for the following: E501 line too long (> 79 characters) E231 missing whitespace after '=2C:' W291 trailing whitespace W293 blank line contains whitespace Comments or suggestions are welcome. Thanks. Andriy Kornatskyy =