Y
Hacker News
new
|
ask
|
show
|
jobs
by
rlpb
5786 days 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.