]> granicus.if.org Git - python/commitdiff
Add versionadded tags to newly added ImportError convenience functions.
authorBrian Curtin <brian@python.org>
Mon, 16 Apr 2012 23:14:09 +0000 (18:14 -0500)
committerBrian Curtin <brian@python.org>
Mon, 16 Apr 2012 23:14:09 +0000 (18:14 -0500)
Doc/c-api/exceptions.rst

index 983901ad7f0d31e8ec43dffaa86f43d10ce2961a..d081ff69ff2cb4edad4fec17ebdfcab29fbe1f07 100644 (file)
@@ -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)