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 christian.heimes
Recipients christian.heimes, collinwinter, gvanrossum
Date 2007-11-27.23:17:55
SpamBayes Score 0.00043981484
Marked as misclassified No
Message-id <474CA5A2.4050900@cheimes.de>
In-reply-to <1196202086.88.0.616889144497.issue1504@psf.upfronthosting.co.za>
Content
Guido van Rossum wrote:
> Guido van Rossum added the comment:
> 
> There's C code like this:
> 
> 	if (Py_Py3kWarningFlag &&
> 	    PyErr_Warn(PyExc_DeprecationWarning, 
> 		       "apply() not supported in 3.x") < 0)
> 		return NULL;
> 
> I don't know how to check for that flag in Python though -- we should
> really export all flags via the sys module...

I've exposed the flag in r59204 as sys.py3kwarning. I've also added a
method warnings.warnpy3k().

Christian
History
Date User Action Args
2007-11-27 23:17:56christian.heimessetspambayes_score: 0.000439815 -> 0.00043981484
recipients: + christian.heimes, gvanrossum, collinwinter
2007-11-27 23:17:56christian.heimeslinkissue1504 messages
2007-11-27 23:17:55christian.heimescreate