Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.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.025 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.01; 'value,': 0.04; 'benefits,': 0.09; 'pay.': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; '-tkc': 0.16; '42,': 0.16; 'aligned.': 0.16; 'code?': 0.16; 'columns': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'readability': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'interpret': 0.24; 'cc:2**0': 0.24; "i've": 0.25; 'tables': 0.26; 'header:In-Reply-To:1': 0.27; 'statement': 0.30; 'code': 0.31; 'but': 0.35; 'maintained': 0.36; 'charset:us-ascii': 0.36; 'easily': 0.37; 'does': 0.39; 'read': 0.60; 'july': 0.63; 'more': 0.64; 'occasion': 0.84; 'received:50.22': 0.84; '"how': 0.91; 'edwards': 0.91; 'wanting': 0.93; '2013': 0.98 Date: Wed, 31 Jul 2013 05:56:41 -0500 From: Tim Chase To: Joshua Landau Subject: Re: PEP8 79 char max In-Reply-To: References: <51F6C5F5.5020201@Gmail.com> <51f6e1d8$0$30000$c3e8da3$5496439d@news.astraweb.com> <51F6ED13.5010508@Gmail.com> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - boston.accountservergroup.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tim.thechases.com X-Get-Message-Sender-Via: boston.accountservergroup.com: none Cc: python-list 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: 34 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1375268124 news.xs4all.nl 16006 [2001:888:2000:d::a6]:33563 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:51639 On 2013-07-31 07:16, Joshua Landau wrote: > On 30 July 2013 18:52, Grant Edwards wrote: >> I also find intializers for tables of data to be much more easily >> read and maintained if the columns can be aligned. > > Why do you have tables in your Python code? I've had occasion to write things like: for name, value, description in ( ("cost", 42, "How much it cost"), ("status", 3141, "Status code from ISO-3.14159"), ... ): do_something(name, value) print(description) I interpret Grant's statement as wanting the "table" to look like for name, value, description in ( ("cost", 42, "How much it cost"), ("status", 3141, "Status code from ISO-3.14159"), ... ): do_something(name, value) print(description) which does give some modest readability benefits, but at a creation cost I personally am unwilling to pay. -tkc