From: Andrew M. Kuchling Date: Mon, 31 Jul 2006 12:52:26 +0000 (+0000) Subject: Add PyErr_WarnEx() X-Git-Tag: v2.5b3~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4bcfe53e29aa816b0b5998e14e49e5a8f7ddbbb2;p=thirdparty%2FPython%2Fcpython.git Add PyErr_WarnEx() --- diff --git a/Doc/whatsnew/whatsnew25.tex b/Doc/whatsnew/whatsnew25.tex index 952f743f37c0..8f7df976bf73 100644 --- a/Doc/whatsnew/whatsnew25.tex +++ b/Doc/whatsnew/whatsnew25.tex @@ -2280,6 +2280,13 @@ Lundh at the NeedForSpeed sprint.) \var{dict})} can now accept a tuple of base classes as its \var{base} argument. (Contributed by Georg Brandl.) +\item The \cfunction{PyErr_Warn()} function for issuing warnings +is now deprecated in favour of \cfunction{PyErr_WarnEx(category, +message, stacklevel)} which lets you specify the number of stack +frames separating this function and the caller. A \var{stacklevel} of +1 is the function calling \cfunction{PyErr_WarnEx()}, 2 is the +function above that, and so forth. (Added by Neal Norwitz.) + \item The CPython interpreter is still written in C, but the code can now be compiled with a {\Cpp} compiler without errors. (Implemented by Anthony Baxter, Martin von~L\"owis, Skip Montanaro.)