diff options
author | Brian Curtin <brian@python.org> | 2012-04-16 23:14:09 (GMT) |
---|---|---|
committer | Brian Curtin <brian@python.org> | 2012-04-16 23:14:09 (GMT) |
commit | bded89449914d58262e42a576d294921757d3755 (patch) | |
tree | 498b543962642da61aa1a60f07fd7d0995f99734 /Doc | |
parent | c07bda0a5a1e3f97df3091f7e71598fc41ec3b26 (diff) | |
download | cpython-bded89449914d58262e42a576d294921757d3755.zip cpython-bded89449914d58262e42a576d294921757d3755.tar.gz cpython-bded89449914d58262e42a576d294921757d3755.tar.bz2 |
Add versionadded tags to newly added ImportError convenience functions.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/c-api/exceptions.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst index 983901a..d081ff6 100644 --- a/Doc/c-api/exceptions.rst +++ b/Doc/c-api/exceptions.rst @@ -235,18 +235,23 @@ in various ways. There is a separate error indicator for each thread. *kwargs* values. If *args* is ``NULL``, an empty :func:`tuple` will be created when *exc* is created via :c:func:`PyObject_Call`. + .. versionadded:: 3.3 + .. c:function:: PyObject* PyErr_SetFromImportErrorWithName(PyObject *msg, PyObject *name) This is a convenience function to raise :exc:`ImportError`. *msg* will be set as the exception's message string, and *name* will be set as the :exc:`ImportError`'s ``name`` attribute. + .. versionadded:: 3.3 + .. c:function:: PyObject* PyErr_SetFromImportErrorWithNameAndPath(PyObject *msg, PyObject *name, PyObject *path) This is a convenience function to raise :exc:`ImportError`. *msg* will be set as the exception's message string. Both *name* and *path* will be set as the :exc:`ImportError`'s respective ``name`` and ``path`` attributes. + .. versionadded:: 3.3 .. c:function:: void PyErr_SyntaxLocationEx(char *filename, int lineno, int col_offset) |