Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!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.062 X-Spam-Evidence: '*H*': 0.88; '*S*': 0.01; 'imho.': 0.09; 'naturally': 0.09; 'cc:addr:python-list': 0.11; '23,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'dec': 0.30; 'message- id:@mail.gmail.com': 0.30; 'received:google.com': 0.35; 'subject:List': 0.36; 'next': 0.36; 'does': 0.39; 'subject:skip:C 10': 0.61; 'side': 0.67; 'therefore': 0.72; 'confusing': 0.84; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=+bIikmhinvtZDrVKs42DIjS0pSQ+JmGGfxPfOfMVh+Y=; b=NXaUqxbYFyZGqNQ6SQ27MIFoI3G8lFBtgINkBLW+iDQfB6KXI1y8pm409HdDBfYk4T RhIwnjmOihiMRe+jVKk5ZvOH8CwCTTc5mo1cOKVSp8KocnRGfwlcdvBF3ZUS+7OY/13h 8PCnU/CzDcsiGSS+wQIJUX5i216LyWcqFZzJRkaoLl9vg00d95+9IUtgwx3hOKvXAVT1 CH9fE0G5ST0TqUT1lr31O98OpemVMBpBAFg/a2jtuQIaexywugKV7UDdcCWCvosLXfAC n8Aj78pVN/yu+geOCGDuwu+uayFuzwGUDojY11b11WW7psU9rX+3jCqSX5hsMbk8fuv1 2Rxg== MIME-Version: 1.0 X-Received: by 10.50.82.97 with SMTP id h1mr16307237igy.14.1419260858670; Mon, 22 Dec 2014 07:07:38 -0800 (PST) In-Reply-To: References: Date: Tue, 23 Dec 2014 02:07:38 +1100 Subject: Re: List Comprehensions From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 9 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1419260860 news.xs4all.nl 2900 [2001:888:2000:d::a6]:52727 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:82776 On Tue, Dec 23, 2014 at 1:58 AM, Rustom Mody wrote: > If you consider side-effecting comprehensions as kosher, > then a next conclusion is naturally going to be that > multiple generator comprehensions are confusing and therefore > not kosher -- a very unfortunate conclusion IMHO. Why does that follow? What has that to do with side effects? ChrisA