Re: [Python-Dev] PEP 548: More Flexible Loop Control

2017-09-07 Thread Guido van Rossum
No worries. We all learned stuff! On Wed, Sep 6, 2017 at 4:22 PM, R. David Murray wrote: > On Wed, 06 Sep 2017 09:43:53 -0700, Guido van Rossum > wrote: > > I'm actually not in favor of this. It's another way to do the same thing. > > Sorry to rain on your dream! > > So it goes :) I learned th

Re: [Python-Dev] PEP 548: More Flexible Loop Control

2017-09-06 Thread R. David Murray
On Wed, 06 Sep 2017 09:43:53 -0700, Guido van Rossum wrote: > I'm actually not in favor of this. It's another way to do the same thing. > Sorry to rain on your dream! So it goes :) I learned things by going through the process, so it wasn't wasted time for me even if (or because) I made several

Re: [Python-Dev] PEP 548: More Flexible Loop Control

2017-09-06 Thread Guido van Rossum
I'm actually not in favor of this. It's another way to do the same thing. Sorry to rain on your dream! On Wed, Sep 6, 2017 at 9:34 AM, R. David Murray wrote: > On Wed, 06 Sep 2017 15:05:51 +1000, Chris Angelico > wrote: > > On Wed, Sep 6, 2017 at 10:11 AM, R. David Murray > wrote: > > > I've w

Re: [Python-Dev] PEP 548: More Flexible Loop Control

2017-09-06 Thread R. David Murray
On Wed, 06 Sep 2017 15:05:51 +1000, Chris Angelico wrote: > On Wed, Sep 6, 2017 at 10:11 AM, R. David Murray > wrote: > > I've written a PEP proposing a small enhancement to the Python loop > > control statements. Short version: here's what feels to me like a > > Pythonic way to spell "repeat u

Re: [Python-Dev] PEP 548: More Flexible Loop Control

2017-09-06 Thread alex goretoy
https://www.youtube.com/watch?v=pNe1wWeaHOU&list=PLYI8318YYdkCsZ7dsYV01n6TZhXA6Wf9i&index=1 Thank you, -Alex Goretoy On Wed, Sep 6, 2017 at 7:05 PM, Ben Hoyt wrote: > I think Serhiy's response is excellent and agree with it. My gut reaction is > "this looks like Perl" (and not in a good way), bu

Re: [Python-Dev] PEP 548: More Flexible Loop Control

2017-09-06 Thread Ben Hoyt
I think Serhiy's response is excellent and agree with it. My gut reaction is "this looks like Perl" (and not in a good way), but more specifically it makes the control flow almost invisible. So I'm definitely -1 on this. The current while True ... break idiom is not pretty, but it's also very clea

Re: [Python-Dev] PEP 548: More Flexible Loop Control

2017-09-06 Thread Ivan Levkivskyi
On 6 September 2017 at 08:42, Serhiy Storchaka wrote: > 06.09.17 03:11, R. David Murray пише: > >> I've written a PEP proposing a small enhancement to the Python loop >> control statements. Short version: here's what feels to me like a >> Pythonic way to spell "repeat until": >> >> while: >

Re: [Python-Dev] PEP 548: More Flexible Loop Control

2017-09-05 Thread Serhiy Storchaka
06.09.17 03:11, R. David Murray пише: I've written a PEP proposing a small enhancement to the Python loop control statements. Short version: here's what feels to me like a Pythonic way to spell "repeat until": while: break if The PEP goes into some detail on why this f

Re: [Python-Dev] PEP 548: More Flexible Loop Control

2017-09-05 Thread Chris Angelico
On Wed, Sep 6, 2017 at 10:11 AM, R. David Murray wrote: > I've written a PEP proposing a small enhancement to the Python loop > control statements. Short version: here's what feels to me like a > Pythonic way to spell "repeat until": > > while: > > break if > > The PEP goes

[Python-Dev] PEP 548: More Flexible Loop Control

2017-09-05 Thread R. David Murray
I've written a PEP proposing a small enhancement to the Python loop control statements. Short version: here's what feels to me like a Pythonic way to spell "repeat until": while: break if The PEP goes into some detail on why this feels like a readability improvement in the