Commit 96d15051 authored by Fred Drake's avatar Fred Drake

For PyErr_Format(), note that the exception parameter can be a string or

class, but not an instance (since an instance will be created using the
formatted message string as the constructor parameter).
parent 2b348780
......@@ -882,8 +882,8 @@ You need not increment its reference count.
\begin{cfuncdesc}{PyObject*}{PyErr_Format}{PyObject *exception,
const char *format, \moreargs}
This function sets the error indicator.
\var{exception} should be a Python object.
This function sets the error indicator. \var{exception} should be a
Python exception (string or class, not an instance).
\var{fmt} 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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment