summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2014-09-30 19:16:27 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2014-09-30 19:16:27 (GMT)
commit0676a406bf9435a59eaca1a54fa582b0b6b79b9f (patch)
tree8e742ce5dc38872dfadfac8b6c673ebacb1c3403 /Doc
parent63860e5407e9ac1251e0698fb2d208a1da54bd3c (diff)
downloadcpython-0676a406bf9435a59eaca1a54fa582b0b6b79b9f.zip
cpython-0676a406bf9435a59eaca1a54fa582b0b6b79b9f.tar.gz
cpython-0676a406bf9435a59eaca1a54fa582b0b6b79b9f.tar.bz2
Issue #18711: Add a new `PyErr_FormatV` function, similar to `PyErr_Format` but accepting a `va_list` argument.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/exceptions.rst8
-rw-r--r--Doc/data/refcounts.dat5
2 files changed, 13 insertions, 0 deletions
diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst
index b0b1e43..98bb152 100644
--- a/Doc/c-api/exceptions.rst
+++ b/Doc/c-api/exceptions.rst
@@ -197,6 +197,14 @@ in various ways. There is a separate error indicator for each thread.
string.
+.. c:function:: PyObject* PyErr_FormatV(PyObject *exception, const char *format, va_list vargs)
+
+ Same as :c:func:`PyErr_Format`, but taking a `va_list` argument rather
+ than a variable number of arguments.
+
+ .. versionadded:: 3.5
+
+
.. c:function:: void PyErr_SetNone(PyObject *type)
This is a shorthand for ``PyErr_SetObject(type, Py_None)``.
diff --git a/Doc/data/refcounts.dat b/Doc/data/refcounts.dat
index 6025617..d1c24e5 100644
--- a/Doc/data/refcounts.dat
+++ b/Doc/data/refcounts.dat
@@ -349,6 +349,11 @@ PyErr_Format:PyObject*:exception:+1:
PyErr_Format:const char*:format::
PyErr_Format::...::
+PyErr_FormatV:PyObject*::null:
+PyErr_FormatV:PyObject*:exception:+1:
+PyErr_FormatV:const char*:format::
+PyErr_FormatV:va_list:vargs::
+
PyErr_WarnEx:int:::
PyErr_WarnEx:PyObject*:category:0:
PyErr_WarnEx:const char*:message::