Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.chainon-marquant.org!news-transit.tcx.org.uk!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed5.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.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'folks,': 0.09; 'omit': 0.09; 'programmers.': 0.09; 'sake': 0.09; 'received:209.85.210.174': 0.13; 'received:mail- iy0-f174.google.com': 0.13; 'alex23': 0.16; 'eternal': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'simplicity,': 0.16; 'subject:=': 0.16; 'examples': 0.16; 'wrote:': 0.18; 'dec': 0.22; 'header:In-Reply-To:1': 0.22; 'modify': 0.25; 'code': 0.25; "i'm": 0.26; 'coding': 0.28; 'depends': 0.28; 'message-id:@mail.gmail.com': 0.28; 'sorry,': 0.29; 'error': 0.29; 'pm,': 0.29; 'correct': 0.29; 'checking.': 0.30; 'fri,': 0.34; 'to:addr:python-list': 0.34; 'hacking': 0.34; 'example,': 0.37; 'but': 0.37; 'received:google.com': 0.37; 'received:209.85': 0.38; 'why': 0.39; 'received:209': 0.40; 'to:addr:python.org': 0.40; 'huge': 0.61; '2011': 0.61; 'hand,': 0.76; 'idiots': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=iE2sQN6gUEqf88K1hvnGDTUTCF2gSk/trPCxapu3rzA=; b=Rd4unUqNwVVXk+jPWkQPgL2TCaBfRgNXqqi1ki3QaMPmeey2+ZNnxA5j1SVVo29FGQ P0Uqgiea/3MWVyhSi74ofq96iFpORqpitwnNO43fLxWKwc39WK8YypobS3t94Mk/9/21 h1TQAk0upMWFAUO9zg8fHgPsgjYPKE6WCSGCY= MIME-Version: 1.0 In-Reply-To: References: <18f78d0d-1e70-4c7b-9033-1422e6edb6db@t13g2000yqg.googlegroups.com> <10c62dac-2750-4f08-8962-21952c1c0a0b@v31g2000prg.googlegroups.com> Date: Fri, 23 Dec 2011 15:25:51 +1100 Subject: Re: what does 'a=b=c=[]' do From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1324614355 news.xs4all.nl 6874 [2001:888:2000:d::a6]:54747 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:17773 On Fri, Dec 23, 2011 at 2:40 PM, alex23 wrote: > I'm sorry, but I'm not going to modify my coding style for the sake of > bad programmers. And there, folks, you have one of the eternal dilemmas. The correct decision depends on myriad factors; if you're writing code to go into the documentation as an example, you want it to be able to handle idiots hacking on it - but on the other hand, that same situation demands simplicity, which is why a lot of examples omit huge slabs of error checking. ChrisA