[Python-checkins] cpython: Add versionadded tags to newly added ImportError convenience functions.
brian.curtin
python-checkins at python.org
Tue Apr 17 01:14:17 CEST 2012
http://hg.python.org/cpython/rev/d79aa61ec96d
changeset: 76365:d79aa61ec96d
user: Brian Curtin <brian at python.org>
date: Mon Apr 16 18:14:09 2012 -0500
summary:
Add versionadded tags to newly added ImportError convenience functions.
files:
Doc/c-api/exceptions.rst | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst
--- a/Doc/c-api/exceptions.rst
+++ b/Doc/c-api/exceptions.rst
@@ -235,18 +235,23 @@
*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)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list