summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2006-07-31 12:52:26 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2006-07-31 12:52:26 (GMT)
commit4bcfe53e29aa816b0b5998e14e49e5a8f7ddbbb2 (patch)
tree7d52e354077bc79ee7c10cba1199c4f4b6bc3a88 /Doc
parent555ac45b20c299eb5c1efc9c6c76a757bccf4a7e (diff)
downloadcpython-4bcfe53e29aa816b0b5998e14e49e5a8f7ddbbb2.zip
cpython-4bcfe53e29aa816b0b5998e14e49e5a8f7ddbbb2.tar.gz
cpython-4bcfe53e29aa816b0b5998e14e49e5a8f7ddbbb2.tar.bz2
Add PyErr_WarnEx()
Diffstat (limited to 'Doc')
-rw-r--r--Doc/whatsnew/whatsnew25.tex7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/whatsnew/whatsnew25.tex b/Doc/whatsnew/whatsnew25.tex
index 952f743..8f7df97 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.)