Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!border1.nntp.ams2.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed4.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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:PEP': 0.07; 'clause': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'variant': 0.09; '"for"': 0.16; 'message-id:@4ax.com': 0.16; 'optional': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'index': 0.16; 'basically': 0.19; 'install': 0.23; 'parse': 0.24; 'url:home': 0.24; 'initial': 0.24; 'header:X-Complaints-To:1': 0.27; 'wonder': 0.29; 'there': 0.35; 'charset:us-ascii': 0.36; 'step': 0.37; 'received:76': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'new': 0.61; 'subject:this': 0.83; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Is this PEP-able? fwhile Date: Tue, 25 Jun 2013 20:47:44 -0400 Organization: IISS Elusive Unicorn References: <_JqdnQKrg4q12FTMnZ2dnUVZ_oydnZ2d@westnet.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-76-249-27-81.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES 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: 26 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1372207668 news.xs4all.nl 15882 [2001:888:2000:d::a6]:47599 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:49218 On Tue, 25 Jun 2013 17:20:43 +1000, Neil Hodgson declaimed the following: >jimjhb@aol.com: > >> Syntax: >> fwhile X in ListY and conditionZ: > > There is precedent in Algol 68: > >for i from 0 to n while safe(i) do .. od > The REXX variant would be do for i = 0 to n while safe(i) ... end Basically one has an optional "for" clause ( for index = initial to end by step ), and one has an optional while/until clause -- Hmm, wonder if some interpreters would parse both while and until . I need to install Regina Rexx on this new machine... -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/