Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #49218
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Subject | Re: Is this PEP-able? fwhile |
| Date | 2013-06-25 20:47 -0400 |
| Organization | IISS Elusive Unicorn |
| References | <mailman.3757.1372103911.3114.python-list@python.org> <_JqdnQKrg4q12FTMnZ2dnUVZ_oydnZ2d@westnet.com.au> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3868.1372207668.3114.python-list@python.org> (permalink) |
On Tue, 25 Jun 2013 17:20:43 +1000, Neil Hodgson <nhodgson@iinet.net.au>
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 <G>. I need to install
Regina Rexx on this new machine...
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Is this PEP-able? fwhile jimjhb@aol.com - 2013-06-24 15:52 -0400
Re: Is this PEP-able? fwhile Neil Hodgson <nhodgson@iinet.net.au> - 2013-06-25 17:20 +1000
Re: Is this PEP-able? fwhile Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-06-25 20:47 -0400
Re: Is this PEP-able? fwhile Chris Angelico <rosuav@gmail.com> - 2013-06-26 17:40 +1000
csiph-web