diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2016-09-07 23:56:15 (GMT) |
---|---|---|
committer | Eric Snow <ericsnowcurrently@gmail.com> | 2016-09-07 23:56:15 (GMT) |
commit | 46f97b85a8ce9ae67b6e4bc32e94f7827df7bab7 (patch) | |
tree | e814eb2b2365001ddbc119372da70eed52f2aeb5 /Doc/c-api | |
parent | c943265ba56e7ce7e2fe79fdecfc6670e10e5467 (diff) | |
download | cpython-46f97b85a8ce9ae67b6e4bc32e94f7827df7bab7.zip cpython-46f97b85a8ce9ae67b6e4bc32e94f7827df7bab7.tar.gz cpython-46f97b85a8ce9ae67b6e4bc32e94f7827df7bab7.tar.bz2 |
Issue #15767: Use ModuleNotFoundError.
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/exceptions.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst index 5644410..25fb29c 100644 --- a/Doc/c-api/exceptions.rst +++ b/Doc/c-api/exceptions.rst @@ -306,6 +306,13 @@ an error value). :mod:`warnings` module and the :option:`-W` option in the command line documentation. There is no C API for warning control. +.. c:function:: PyObject* PyErr_SetImportErrorSubclass(PyObject *msg, PyObject *name, PyObject *path) + + Much like :c:func:`PyErr_SetImportError` but this function allows for + specifying a subclass of :exc:`ImportError` to raise. + + .. versionadded:: 3.4 + .. c:function:: int PyErr_WarnExplicitObject(PyObject *category, PyObject *message, PyObject *filename, int lineno, PyObject *module, PyObject *registry) |