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


Groups > comp.lang.python > #37514

Re: Understanding while...else...

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!nuzba.szn.dk!pnx.dk!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'output': 0.04; 'python- level': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'terry': 0.09; 'constructs.': 0.16; 'equivalence': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'wrote:': 0.17; 'jan': 0.18; 'claimed': 0.22; "python's": 0.23; 'header:In- Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'compiled': 0.27; 'header:X-Complaints-To:1': 0.28; 'trouble': 0.28; 'optional': 0.29; "i'm": 0.29; 'code': 0.31; '-----': 0.32; 'anyone': 0.33; 'to:addr:python-list': 0.33; 'agreed': 0.33; 'pm,': 0.35; 'received:org': 0.36; 'correctly': 0.37; 'quite': 0.37; 'subject:: ': 0.38; 'sure': 0.38; 'several': 0.39; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'skip:u 10': 0.60; 'subject:...': 0.63; 'received:fios.verizon.net': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: Understanding while...else...
Date Wed, 23 Jan 2013 17:47:51 -0500
References <kdmj5n$me1$1@ger.gmane.org> <1860347092.8310858.1358878558150.JavaMail.root@sequans.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host pool-173-75-251-66.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0
In-Reply-To <1860347092.8310858.1358878558150.JavaMail.root@sequans.com>
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 <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.927.1358981312.2939.python-list@python.org> (permalink)
Lines 18
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1358981312 news.xs4all.nl 6920 [2001:888:2000:d::a6]:53229
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:37514

Show key headers only | View raw


On 1/22/2013 1:15 PM, Jean-Michel Pichavant wrote:
> ----- Original Message -----
>> Several people have trouble understanding Python's while-else and
>> for-else constructs. It is actually quite simple
>
> agreed on the last part.
>
> [snip long story]
>
> Did you just try to make it simple by showing the compiled code ? I'm
> quite not sure about that...

The dis output was an optional appendix for anyone who doubted the 
correctly of my claimed python-level equivalence ;-).

-- 
Terry Jan Reedy

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


Thread

Re: Understanding while...else... Terry Reedy <tjreedy@udel.edu> - 2013-01-23 17:47 -0500

csiph-web