File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments