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 amaury.forgeotdarc
Recipients amaury.forgeotdarc, georg.brandl, sandeepsabnani
Date 2008-04-30.09:02:20
SpamBayes Score 0.5260649
Marked as misclassified No
Message-id <1209546146.03.0.35702440053.issue2724@psf.upfronthosting.co.za>
In-reply-to
Content
No, the example is correct, and gives the expected output.

From the output you show, I suppose that you indented the "else:" clause
incorrectly: it should align with the "for" loop, not the "if" statement.

The "for...else.." construct is precisely the point of this paragraph.
History
Date User Action Args
2008-04-30 09:02:26amaury.forgeotdarcsetspambayes_score: 0.526065 -> 0.5260649
recipients: + amaury.forgeotdarc, georg.brandl, sandeepsabnani
2008-04-30 09:02:26amaury.forgeotdarcsetspambayes_score: 0.526065 -> 0.526065
messageid: <1209546146.03.0.35702440053.issue2724@psf.upfronthosting.co.za>
2008-04-30 09:02:24amaury.forgeotdarclinkissue2724 messages
2008-04-30 09:02:23amaury.forgeotdarccreate