Commit bded8944 authored by Brian Curtin's avatar Brian Curtin

Add versionadded tags to newly added ImportError convenience functions.

parent c07bda0a
...@@ -235,18 +235,23 @@ in various ways. There is a separate error indicator for each thread. ...@@ -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 *kwargs* values. If *args* is ``NULL``, an empty :func:`tuple` will be
created when *exc* is created via :c:func:`PyObject_Call`. created when *exc* is created via :c:func:`PyObject_Call`.
.. versionadded:: 3.3
.. c:function:: PyObject* PyErr_SetFromImportErrorWithName(PyObject *msg, PyObject *name) .. c:function:: PyObject* PyErr_SetFromImportErrorWithName(PyObject *msg, PyObject *name)
This is a convenience function to raise :exc:`ImportError`. *msg* will be 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 set as the exception's message string, and *name* will be set as the
:exc:`ImportError`'s ``name`` attribute. :exc:`ImportError`'s ``name`` attribute.
.. versionadded:: 3.3
.. c:function:: PyObject* PyErr_SetFromImportErrorWithNameAndPath(PyObject *msg, PyObject *name, PyObject *path) .. c:function:: PyObject* PyErr_SetFromImportErrorWithNameAndPath(PyObject *msg, PyObject *name, PyObject *path)
This is a convenience function to raise :exc:`ImportError`. *msg* will be 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 set as the exception's message string. Both *name* and *path* will be set
as the :exc:`ImportError`'s respective ``name`` and ``path`` attributes. 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) .. c:function:: void PyErr_SyntaxLocationEx(char *filename, int lineno, int col_offset)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment