MacMusic  |  PcMusic  |  440 Software  |  440 Forums  |  440TV  |  Zicos
python
Search

[$] Python multi-level break and continue

Wednesday August 31, 2022. 11:14 PM , from LWN.net
A fairly lengthy discussion of whether there should be a way to
break out of (or
continue) more than one level of nested loops in Python recently
took place in the Ideas
category of the language's discussion forum. The idea is
attractive, at least in an abstract sense—some other languages support
jumping out of
multiple loops at once—but it seems unlikely to go anywhere for Python.
The barrier to new features is fairly high, for sure, but there is also a
need for proponents to provide real-world examples that demonstrate their
advantages. That, too, is a difficult bar to clear, as was seen in the
discussion.
https://lwn.net/Articles/906512/
News copyright owned by their original publishers | Copyright © 2004 - 2024 Zicos / 440Network
Current Date
Apr, Tue 23 - 08:04 CEST