cpython: 5cc8b717b38c (original) (raw)

Mercurial > cpython

changeset 76363:5cc8b717b38c

Add documentation for the new PyErr_SetFromImport* functions

Brian Curtin brian@python.org
date Mon, 16 Apr 2012 15:14:36 -0500
parents 9d8839289e18
children a1b38ade5def
files Doc/c-api/exceptions.rst
diffstat 1 files changed, 18 insertions(+), 0 deletions(-)[+] [-] Doc/c-api/exceptions.rst 18

line wrap: on

line diff

--- a/Doc/c-api/exceptions.rst +++ b/Doc/c-api/exceptions.rst @@ -229,6 +229,24 @@ in various ways. There is a separate er Similar to :c:func:PyErr_SetFromWindowsErrWithFilename, with an additional parameter specifying the exception type to be raised. Availability: Windows. +.. c:function:: PyObject* PyErr_SetExcWithArgsKwargs(PyObject *exc, PyObject *args, PyObject *kwargs) +

+.. c:function:: PyObject* PyErr_SetFromImportErrorWithName(PyObject *msg, PyObject *name) +

+.. c:function:: PyObject* PyErr_SetFromImportErrorWithNameAndPath(PyObject *msg, PyObject *name, PyObject *path) +

.. c:function:: void PyErr_SyntaxLocationEx(char *filename, int lineno, int col_offset)