9 ms·
In Python, you could write your snippet as a generator and not need to break up the function. It is also possible to throw exceptions into generators.
by rlpb 16y ago
In Python, you could write your snippet as a generator and not need to break up the function. It is also possible to throw exceptions into generators.