mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
SF bug #719367, string exceptions are deprecated
Remove references to string based exceptions in the doc.
This commit is contained in:
parent
d3d5768e5e
commit
847207acff
6 changed files with 19 additions and 22 deletions
|
@ -102,7 +102,7 @@ for each thread.
|
|||
indicator is already set, it is cleared first. If the objects are
|
||||
\NULL, the error indicator is cleared. Do not pass a \NULL{} type
|
||||
and non-\NULL{} value or traceback. The exception type should be a
|
||||
string or class. Do not pass an invalid exception type or value.
|
||||
class. Do not pass an invalid exception type or value.
|
||||
(Violating these rules will cause subtle problems later.) This call
|
||||
takes away a reference to each object: you must own a reference to
|
||||
each object before the call and after the call you no longer own
|
||||
|
@ -130,7 +130,7 @@ for each thread.
|
|||
\begin{cfuncdesc}{PyObject*}{PyErr_Format}{PyObject *exception,
|
||||
const char *format, \moreargs}
|
||||
This function sets the error indicator and returns \NULL.
|
||||
\var{exception} should be a Python exception (string or class, not
|
||||
\var{exception} should be a Python exception (class, not
|
||||
an instance). \var{format} should be a string, containing format
|
||||
codes, similar to \cfunction{printf()}. The \code{width.precision}
|
||||
before a format code is parsed, but the width part is ignored.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue