@@ -324,15 +324,15 @@ in various ways. There is a separate error indicator for each thread.
324324 .. versionadded :: 3.4
325325
326326
327- .. c :function :: void PyErr_SyntaxLocationEx (char *filename, int lineno, int col_offset)
327+ .. c :function :: void PyErr_SyntaxLocationEx (const char *filename, int lineno, int col_offset)
328328
329329 Like :c:func: `PyErr_SyntaxLocationObject `, but *filename * is a byte string
330330 decoded from the filesystem encoding (:func: `os.fsdecode `).
331331
332332 .. versionadded:: 3.2
333333
334334
335- .. c:function:: void PyErr_SyntaxLocation(char *filename, int lineno)
335+ .. c:function:: void PyErr_SyntaxLocation(const char *filename, int lineno)
336336
337337 Like :c:func: `PyErr_SyntaxLocationEx `, but the col_offset parameter is
338338 omitted.
@@ -451,7 +451,7 @@ in various ways. There is a separate error indicator for each thread.
451451 only be called from the main thread.
452452
453453
454- .. c :function :: PyObject* PyErr_NewException (char *name, PyObject *base, PyObject *dict)
454+ .. c :function :: PyObject* PyErr_NewException (const char *name, PyObject *base, PyObject *dict)
455455
456456 This utility function creates and returns a new exception class. The *name *
457457 argument must be the name of the new exception, a C string of the form
@@ -466,7 +466,7 @@ in various ways. There is a separate error indicator for each thread.
466466 argument can be used to specify a dictionary of class variables and methods.
467467
468468
469- .. c :function :: PyObject* PyErr_NewExceptionWithDoc (char *name, char *doc, PyObject *base, PyObject *dict)
469+ .. c :function :: PyObject* PyErr_NewExceptionWithDoc (const char *name, const char *doc, PyObject *base, PyObject *dict)
470470
471471 Same as :c:func: `PyErr_NewException `, except that the new exception class can
472472 easily be given a docstring: If *doc * is non-*NULL *, it will be used as the
0 commit comments