Date: Sat, 09 Apr 2011 00:27:12 +1000 From: Lie Ryan User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101110 Lightning/1.0b3pre Thunderbird/3.1.6 ThunderBrowse/3.3.4 MIME-Version: 1.0 Newsgroups: comp.lang.python Subject: Re: Fun python 3.2 one-liner References: <8vi963F9lhU1@mid.individual.net> <4d9b3043$0$29991$c3e8da3$5496439d@news.astraweb.com> In-Reply-To: <4d9b3043$0$29991$c3e8da3$5496439d@news.astraweb.com> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 110.175.240.90 X-Original-NNTP-Posting-Host: 110.175.240.90 Message-ID: <4d9f19d7$1@dnews.tpgi.com.au> X-Trace: dnews.tpgi.com.au!tpg.com.au 1302272471 110.175.240.90 (9 Apr 2011 00:21:11 +1000) Lines: 10 Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.alt.net!news.kjsl.com!rahul.net!wasp.rahul.net!rahul.net!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!nntp3.phx1!dnews.tpgi.com.au!tpg.com.au!not-for-mail Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:2842 On 04/06/11 01:07, Steven D'Aprano wrote: > On Tue, 05 Apr 2011 15:38:28 +0200, Daniel Fetchinson wrote: > Personally, I find that the discipline of keeping to 80 characters is > good for me. It reduces the temptation of writing obfuscated Python one- > liners when two lines would be better. The *only* time it is a burden is > when I write doc strings, and even then, only a small one. Unless the editor I'm using has an 80-char autowrapping or a 80-char guiding lines, I tend to wrap docstring in ~40-60 char.