This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients barry, gvanrossum, lemburg, michael.foord, ncoghlan, rhettinger, serhiy.storchaka, terry.reedy
Date 2013-07-28.19:10:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1375038639.82.0.147089636023.issue18472@psf.upfronthosting.co.za>
In-reply-to
Content
> 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)
History
Date User Action Args
2013-07-28 19:10:39serhiy.storchakasetrecipients: + serhiy.storchaka, lemburg, gvanrossum, barry, rhettinger, terry.reedy, ncoghlan, michael.foord
2013-07-28 19:10:39serhiy.storchakasetmessageid: <1375038639.82.0.147089636023.issue18472@psf.upfronthosting.co.za>
2013-07-28 19:10:39serhiy.storchakalinkissue18472 messages
2013-07-28 19:10:39serhiy.storchakacreate