Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'third-party': 0.04; 'continuation': 0.07; 'arguments': 0.09; 'lines.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; '110': 0.16; 'instance:': 0.16; 'received:80.91.229.3': 0.16; 'received:dip.t-dialin.net': 0.16; 'received:plane.gmane.org': 0.16; 'received:t-dialin.net': 0.16; 'wrote:': 0.18; 'header:User- Agent:1': 0.23; 'tend': 0.24; 'header:X-Complaints-To:1': 0.27; "i'm": 0.30; 'code': 0.31; 'lines': 0.31; '120': 0.31; 'skip:s 30': 0.35; 'but': 0.35; 'leads': 0.36; 'example,': 0.37; 'tools,': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'even': 0.60; 'break': 0.61; 'such': 0.63; 'maximum': 0.63; 'between': 0.67; 'line,': 0.68; 'default': 0.69; 'user,': 0.69; 'hate': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Peter Otten <__peter__@web.de> Subject: Re: In defence of 80-char lines Date: Thu, 04 Apr 2013 08:43:06 +0200 Organization: None References: <515cd919$0$29966$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Gmane-NNTP-Posting-Host: p5084937e.dip.t-dialin.net User-Agent: KNode/4.7.3 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: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1365057741 news.xs4all.nl 6911 [2001:888:2000:d::a6]:40344 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:42740 llanitedave wrote: > I also tend to prefer a maximum between 110 and 120 characters. I find > continuation lines confusing, and when you use some third-party tools, > such as wxPython, for example, the boilerplate code leads to some long > lines. > > I would hate to have to break up this line, for instance: > > self.mainLabel.SetFont(wx.Font(12, wx.DEFAULT, wx.NORMAL, wx.BOLD, > faceName = "FreeSans")) I'm not a wx user, but I think I would prefer labelfont = wx.Font( pointSize=12, style=wx.DEFAULT, family=wx.NORMAL, weight=wx.BOLD, faceName="FreeSans") self.mainLabel.SetFont(labelfont) even if I knew the order of the arguments and the meaning of constants like DEFAULT and NORMAL by heart.