Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bded894

Browse files
committed
Add versionadded tags to newly added ImportError convenience functions.
1 parent c07bda0 commit bded894

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Doc/c-api/exceptions.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,18 +235,23 @@ in various ways. There is a separate error indicator for each thread.
235235
*kwargs* values. If *args* is ``NULL``, an empty :func:`tuple` will be
236236
created when *exc* is created via :c:func:`PyObject_Call`.
237237
238+
.. versionadded:: 3.3
239+
238240
.. c:function:: PyObject* PyErr_SetFromImportErrorWithName(PyObject *msg, PyObject *name)
239241
240242
This is a convenience function to raise :exc:`ImportError`. *msg* will be
241243
set as the exception's message string, and *name* will be set as the
242244
:exc:`ImportError`'s ``name`` attribute.
243245
246+
.. versionadded:: 3.3
247+
244248
.. c:function:: PyObject* PyErr_SetFromImportErrorWithNameAndPath(PyObject *msg, PyObject *name, PyObject *path)
245249
246250
This is a convenience function to raise :exc:`ImportError`. *msg* will be
247251
set as the exception's message string. Both *name* and *path* will be set
248252
as the :exc:`ImportError`'s respective ``name`` and ``path`` attributes.
249253
254+
.. versionadded:: 3.3
250255
251256
.. c:function:: void PyErr_SyntaxLocationEx(char *filename, int lineno, int col_offset)
252257

0 commit comments

Comments
 (0)