Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #82776

Re: List Comprehensions

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 <rosuav@gmail.com>
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 <b1bccab6-7025-41fd-b0a1-d19e1fef41da@googlegroups.com>
References <CACT3xuWVZPqEZ-hQ6QS7QTnpuBG3FXvVuc=wVN5PLLM7FPrscQ@mail.gmail.com> <mailman.17109.1419228400.18130.python-list@python.org> <roy-8A482E.08070922122014@news.panix.com> <mailman.17118.1419254490.18130.python-list@python.org> <b1bccab6-7025-41fd-b0a1-d19e1fef41da@googlegroups.com>
Date Tue, 23 Dec 2014 02:07:38 +1100
Subject Re: List Comprehensions
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.17120.1419260860.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Tue, Dec 23, 2014 at 1:58 AM, Rustom Mody <rustompmody@gmail.com> 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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: List Comprehensions Chris Angelico <rosuav@gmail.com> - 2014-12-22 17:06 +1100
  Re: List Comprehensions Roy Smith <roy@panix.com> - 2014-12-22 08:07 -0500
    Re: List Comprehensions Chris Angelico <rosuav@gmail.com> - 2014-12-23 00:21 +1100
      Re: List Comprehensions Rustom Mody <rustompmody@gmail.com> - 2014-12-22 06:58 -0800
        Re: List Comprehensions Chris Angelico <rosuav@gmail.com> - 2014-12-23 02:07 +1100
          Re: List Comprehensions Rustom Mody <rustompmody@gmail.com> - 2014-12-22 09:45 -0800

csiph-web