mirror of
https://github.com/python/cpython.git
synced 2025-09-30 20:31:52 +00:00
Add PyErr_WarnEx()
This commit is contained in:
parent
555ac45b20
commit
4bcfe53e29
1 changed files with 7 additions and 0 deletions
|
@ -2280,6 +2280,13 @@ Lundh at the NeedForSpeed sprint.)
|
||||||
\var{dict})} can now accept a tuple of base classes as its \var{base}
|
\var{dict})} can now accept a tuple of base classes as its \var{base}
|
||||||
argument. (Contributed by Georg Brandl.)
|
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
|
\item The CPython interpreter is still written in C, but
|
||||||
the code can now be compiled with a {\Cpp} compiler without errors.
|
the code can now be compiled with a {\Cpp} compiler without errors.
|
||||||
(Implemented by Anthony Baxter, Martin von~L\"owis, Skip Montanaro.)
|
(Implemented by Anthony Baxter, Martin von~L\"owis, Skip Montanaro.)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue