summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
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/c-api
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/c-api')
-rw-r--r--Doc/c-api/exceptions.rst8
1 files changed, 8 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)``.