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

[$] Python multi-level break and continue

mercredi 31 août 2022, 23:14 , par 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
Date Actuelle
sam. 4 mai - 07:02 CEST