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 eric.smith
Recipients amaury.forgeotdarc, benjamin.peterson, eric.smith, nnorwitz
Date 2008-05-08.01:26:38
SpamBayes Score 0.034559306
Marked as misclassified No
Message-id <1210210010.72.0.432960909659.issue2772@psf.upfronthosting.co.za>
In-reply-to
Content
> That would make user code warning that uses '%"' brittle. However, if
> we warn about it, I think it's ok.

True enough.  Then I think we should go with:
1. Use .format() in the warnings module.
2. Tell the users not to use % formatting in user code for warnings.
3. Add my original, simple, global check for recursion.  It will work
incorrectly in an insignificant number of cases, and will typically
result in at least one warning about % formatting, anyway.

I'll have a patch ready soon.
History
Date User Action Args
2008-05-08 01:26:51eric.smithsetspambayes_score: 0.0345593 -> 0.034559306
recipients: + eric.smith, nnorwitz, amaury.forgeotdarc, benjamin.peterson
2008-05-08 01:26:50eric.smithsetspambayes_score: 0.0345593 -> 0.0345593
messageid: <1210210010.72.0.432960909659.issue2772@psf.upfronthosting.co.za>
2008-05-08 01:26:49eric.smithlinkissue2772 messages
2008-05-08 01:26:48eric.smithcreate