Path: csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Marko Rauhamaa Newsgroups: comp.lang.python Subject: Re: GOTCHA with list comprehension Date: Wed, 05 Aug 2015 12:01:12 +0300 Organization: A noiseless patient Spider Lines: 11 Message-ID: <87wpxacdnr.fsf@elektro.pacujo.net> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="b7cb1518d23ec19d482dcc9c31d30fdd"; logging-data="30152"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Dy9608Lovax0coTa0eu/7" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:0DuX5bYuz8YgPa40r2SSUa7cZVE= sha1:oa7jJsaYpvYdYtM+hCIV/aslPYc= Xref: csiph.com comp.lang.python:95005 Chris Angelico : > You can chain 'for' and 'if' clauses as much as you like, and they > behave exactly the way you'd expect. How do you know what I'd expect? I wouldn't know what to expect myself. Marko