Hi
Some of us might believe that a currently legal syntax should only exceptionally be given a new meaning, even if there is no evidence whatsoever that this legal syntax is actually in use. My own belief is more pragmatic. If there's very strong evidence that the syntax is not in use, I'm happy to consider changing the meaning.
I wrote:
The title of this thread includes the phrase 'Stop Iterating' (capitals added). This suggests the syntax
a, b, StopIterating = iterable
where StopIterating is a new keyword that can be used only in this context.
In response Chris wrote:
Hard no. That is currently-legal syntax, and it's also clunky.
Although
a, b, StopIterating = iterable
is currently legal syntax, I believe that no-one has ever used it in Python before today. My evidence is this search, which gives 25 pages.
These pages found by this search do match "StopIterating", but do not provide an example of their use in Python.
The following are copies of the stackoverflow page.
--
Jonathan