[Python-ideas] Control Flow - Never Executed Loop Body
Sven R. Kunze
srkunze at mail.de
Tue Mar 22 08:33:36 EDT 2016
On 22.03.2016 13:29, Chris Angelico wrote:
> It's not enough shorter than the simple 'for' loop to justify the
> dedicated syntax. But check out its *actual* equivalent code and
> you'll see that while we're getting toward similar territory, the
> for-ifempty loop isn't quite here yet :)
>
> https://www.python.org/dev/peps/pep-0380/#formal-semantics
I remember that. I was quite surprise to find such a huge amount of
equivalent python code to handle all corner and edge cases correctly.
If I were to become the one maintaining this, I hope we don't discover
even more edge cases. :D
Best,
Sven
More information about the Python-ideas
mailing list