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
Date 2008-05-06.23:36:56
SpamBayes Score 0.14742173
Marked as misclassified No
Message-id <1210117018.04.0.855596183649.issue2772@psf.upfronthosting.co.za>
In-reply-to
Content
> Well, the first thing to check for is Py_Py3kWarning. Then do the
> extra logic and execution speed.

In 3.0, it's always a PendingDeprecationWarning, so that won't work. 
The test needs to be:

if not recursing and warning_is_not_suppressed:
    warn()

The recursion test is expensive if using thread local storage; the
warning suppressed test looks expensive, too.  So there's no quick short
circuit test that I see.  Of course all of this is just hot air until
coded and benchmarked.  I'll cook up a patch, but it will probably not
be ready before the next alpha releases.
History
Date User Action Args
2008-05-06 23:36:58eric.smithsetspambayes_score: 0.147422 -> 0.14742173
recipients: + eric.smith, amaury.forgeotdarc, benjamin.peterson
2008-05-06 23:36:58eric.smithsetspambayes_score: 0.147422 -> 0.147422
messageid: <1210117018.04.0.855596183649.issue2772@psf.upfronthosting.co.za>
2008-05-06 23:36:57eric.smithlinkissue2772 messages
2008-05-06 23:36:56eric.smithcreate