Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3a.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.047 X-Spam-Evidence: '*H*': 0.91; '*S*': 0.00; 'freelance': 0.05; '(instead': 0.09; 'editor.': 0.09; 'spaces': 0.09; 'developer': 0.10; 'cc:addr:python-list': 0.11; 'received:209.85.218': 0.14; 'ssh': 0.16; 'subject:Line': 0.16; 'tab': 0.16; 'tabs': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'cc:addr:python.org': 0.22; 'java': 0.24; 'mon,': 0.24; 'question': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'dec': 0.30; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'code': 0.31; 'usually': 0.31; 'indentation': 0.31; 'url:python': 0.33; 'maybe': 0.34; 'could': 0.34; 'received:209.85': 0.35; 'editor': 0.35; 'received:google.com': 0.35; 'url:listinfo': 0.36; 'possible': 0.36; 'subject:?': 0.36; 'url:org': 0.36; 'should': 0.36; 'received:209': 0.37; 'server': 0.38; 'e.g.': 0.38; 'url:mail': 0.40; 'how': 0.40; 'skip:u 10': 0.60; 'length': 0.61; 'browser': 0.61; 'simple': 0.61; 'different': 0.65; 'talking': 0.65; 'from:addr:admin': 0.78; 'flame': 0.84; 'krish': 0.84; 'subject:Using': 0.84; 'url:asia': 0.84; 'boxes,': 0.91; 'realistic': 0.93 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=UakM0oeilRj8HVTpN3maFyeg+DnsPTr3rZhw6Iax1UI=; b=HvDI7vdnu8xkHL4MOnIjwZDeBWeG+RQ0RaLDBNcfFir7c0KE7E8S3dgmFJ1JUH8WHn ir1HSzgFlx86aXO0rPAX7lf5m8f5Df2MfqyWqmN1IhxAVjKT9bA+TGqFvmtJltOiFbJ+ 5lQ6yVCX46EtxcpnmxV9UsCKsjnd1+2WUmGQAmfvSTaAqsJCTjEJNNaYqqEb9a4gK34r 5uNO6PLDEzMO4z5s5TAtbDjIadOys2KYX1tRCazujTys8gv+FQsNFHko1CN/FsoZUL69 ocGpBFAxDmj0NDl4L3HRiV+uOMIwbdVgpZV/1z7qsn4IY/Pxqhrxt50I4I10NklskBRI s7CA== X-Gm-Message-State: ALoCoQle43cbYf7sEDupwskhW16td9pmRs1s2zxm1Qr/vxcLJ2YjMieoPGl1ITPbUtzn8R8eTcRQ MIME-Version: 1.0 X-Received: by 10.202.49.131 with SMTP id x125mr5278401oix.17.1418005541424; Sun, 07 Dec 2014 18:25:41 -0800 (PST) X-Originating-IP: [61.14.154.230] In-Reply-To: References: Date: Mon, 8 Dec 2014 10:25:41 +0800 Subject: Re: Maintaining Maximum Line Length When Using Tabs Instead of Spaces? From: jtan To: Aahan Krish Content-Type: multipart/alternative; boundary=001a113cd9f0962e1b0509ab2408 Cc: python-list@python.org 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: 83 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1418005550 news.xs4all.nl 2829 [2001:888:2000:d::a6]:53192 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:82094 --001a113cd9f0962e1b0509ab2408 Content-Type: text/plain; charset=UTF-8 One reason why you would want max length 79 is because of working with terminals. Maybe ssh to you server and check how many spaces are consumed by a tab? In my boxes, it is usually 1 tab = 8 spaces. So perhaps just use that setting in your editor? On Mon, Dec 8, 2014 at 10:15 AM, 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.* > > TY, > Aahan > -- > https://mail.python.org/mailman/listinfo/python-list > -- Freelance Grails and Java developer --001a113cd9f0962e1b0509ab2408 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
One reason why you would want max length 79 is because of = working with terminals.=C2=A0 Maybe ssh to you server and check how many sp= aces are consumed by a tab?=C2=A0 In my boxes, it is usually 1 tab =3D 8 sp= aces.=C2=A0 So perhaps just use that setting in your editor?

On Mon, Dec 8, 2014 at 10:= 15 AM, Aahan Krish <krish@aahan.me> wrote:
My understanding from talking to different people is that man= y 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 o= f
comments. I would like to avoid flame wars.*

TY,
Aahan
--
https://mail.python.org/mailman/listinfo/python-list



--
Freelance=C2=A0Grails and Java=C2=A0developer
--001a113cd9f0962e1b0509ab2408--