From: Georg Brandl Date: Mon, 6 Oct 2014 10:58:00 +0000 (+0200) Subject: Closes #22565: fix argument types of PyErr_WarnEx. X-Git-Tag: v3.5.0a1~746^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=97435166aa4cb65d5d18f82782700771682456d5;p=python Closes #22565: fix argument types of PyErr_WarnEx. --- diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst index 33b44390d2..8ad742afef 100644 --- a/Doc/c-api/exceptions.rst +++ b/Doc/c-api/exceptions.rst @@ -346,7 +346,7 @@ in various ways. There is a separate error indicator for each thread. use. -.. c:function:: int PyErr_WarnEx(PyObject *category, char *message, int stack_level) +.. c:function:: int PyErr_WarnEx(PyObject *category, const char *message, Py_ssize_t stack_level) Issue a warning message. The *category* argument is a warning category (see below) or *NULL*; the *message* argument is an UTF-8 encoded string. *stack_level* is a