4 ms·
Which is not to suggest you should be using exceptions for flow control.
by polynomial 4y ago
Which is not to suggest you should be using exceptions for flow control.
- bhawks 4y agoPython's StopIteration has entered the chat.
- Izkata 4y agoI remember reading a long time ago that cpython had done some work to make exceptions lightweight enough for it to be reasonable to use them for control flow... No idea what that was though.
- TeMPOraL 4y agoWell, if that's the only "escape hatch" you have, because otherwise the language authors decided to limit what you can do with control flow...