Issue #18711: Add a new PyErr_FormatV function, similar to PyErr_Format but accepting a va_list argument.

This commit is contained in:
Antoine Pitrou 2014-09-30 21:16:27 +02:00
parent 63860e5407
commit 0676a406bf
7 changed files with 39 additions and 10 deletions

View file

@ -242,6 +242,12 @@ PyAPI_FUNC(PyObject *) PyErr_Format(
const char *format, /* ASCII-encoded string */
...
);
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000
PyAPI_FUNC(PyObject *) PyErr_FormatV(
PyObject *exception,
const char *format,
va_list vargs);
#endif
#ifdef MS_WINDOWS
PyAPI_FUNC(PyObject *) PyErr_SetFromWindowsErrWithFilename(