Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!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.036 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; '(instead': 0.09; 'editor.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'spaces': 0.09; '9:15': 0.16; 'pep8': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:Line': 0.16; 'tab': 0.16; 'tabs': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'header:User- Agent:1': 0.23; 'received:comcast.net': 0.24; 'question': 0.24; 'asking': 0.27; 'header:X-Complaints-To:1': 0.27; 'header:In- Reply-To:1': 0.27; "i'm": 0.30; 'code': 0.31; 'indentation': 0.31; 'sense': 0.34; 'could': 0.34; 'problem.': 0.35; 'editor': 0.35; 'curious': 0.36; 'possible': 0.36; 'subject:?': 0.36; 'should': 0.36; 'e.g.': 0.38; 'solving': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'skip:u 10': 0.60; 'browser': 0.61; 'simple': 0.61; 'more': 0.64; 'different': 0.65; 'talking': 0.65; 'here': 0.66; 'flame': 0.84; 'inherent': 0.84; 'krish': 0.84; 'subject:Using': 0.84; 'war.': 0.91; 'realistic': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Ned Batchelder Subject: Re: Maintaining Maximum Line Length When Using Tabs Instead of Spaces? Date: Sun, 07 Dec 2014 22:19:24 -0500 References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: c-50-133-228-126.hsd1.ma.comcast.net User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: 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: 1418008769 news.xs4all.nl 2903 [2001:888:2000:d::a6]:33961 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:82097 On 12/7/14 9:15 PM, Aahan Krish wrote: > My understanding from talking to different people is that many do use > tabs (instead of spaces) for indentation in their code. > > My question is to them (because I want to use tabs too) is: how do you > maintain a line-length of 79 characters? > > E.g. scenario: The tab setting in your editor could be 2 or 4, and in > other developer's browser it could be 8. The code will be longer than > 79 chars in the latter's editor. > > I want to know if it's at all possible or if you use some simple and > realistic (practical) hacks. > > *PS: Please avoid, "That's why you should use spaces," type of > comments. I would like to avoid flame wars.* Pointing out that spaces make more sense is not a flame war. You are here asking how to deal with the variability inherent in tabs. Spaces don't have that problem. That is not flaming. That's solving your problem. I'm curious why you care about the "79 characters" part of PEP8 if you don't care about the "use spaces" part of PEP8. -- Ned Batchelder, http://nedbatchelder.com