Message193838
> Based on recent python-list posts, there is also 'break is bad' propaganda going around. Perhaps we should say that loop-and-a-half with break is preferred (or at least equally acceptable) to repeating code.
Sometimes yet one alternative can be used instead:
for value in iter(getvalue, stopvalue):
process(value) |
|
Date |
User |
Action |
Args |
2013-07-28 19:10:39 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, lemburg, gvanrossum, barry, rhettinger, terry.reedy, ncoghlan, michael.foord |
2013-07-28 19:10:39 | serhiy.storchaka | set | messageid: <1375038639.82.0.147089636023.issue18472@psf.upfronthosting.co.za> |
2013-07-28 19:10:39 | serhiy.storchaka | link | issue18472 messages |
2013-07-28 19:10:39 | serhiy.storchaka | create | |
|