summaryrefslogtreecommitdiff
path: root/Doc/c-api
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-03-24 09:06:18 +0100
committerGeorg Brandl <georg@python.org>2014-03-24 09:06:18 +0100
commit36e1fd011e2561e3a1e60c5e2c10b1ff3fbf16aa (patch)
treefec3dc5b26ce7d72f78c61cfef2ee5beee608a7d /Doc/c-api
parent375b20dcdef0ed1f80be17072dd6eb62bcef126f (diff)
downloadcpython-36e1fd011e2561e3a1e60c5e2c10b1ff3fbf16aa.tar.gz
Fix a few scoping issues with versionadded/versionchanged directives.
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/exceptions.rst8
-rw-r--r--Doc/c-api/object.rst1
2 files changed, 5 insertions, 4 deletions
diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst
index 7067448b46..6fda191d2f 100644
--- a/Doc/c-api/exceptions.rst
+++ b/Doc/c-api/exceptions.rst
@@ -247,7 +247,7 @@ in various ways. There is a separate error indicator for each thread.
filename object, for raising errors when a function that takes two filenames
fails.
-.. versionadded:: 3.4
+ .. versionadded:: 3.4
.. c:function:: PyObject* PyErr_SetFromErrnoWithFilename(PyObject *type, const char *filename)
@@ -295,7 +295,7 @@ in various ways. There is a separate error indicator for each thread.
but accepts a second filename object.
Availability: Windows.
-.. versionadded:: 3.4
+ .. versionadded:: 3.4
.. c:function:: PyObject* PyErr_SetExcFromWindowsErrWithFilename(PyObject *type, int ierr, const char *filename)
@@ -321,7 +321,7 @@ in various ways. There is a separate error indicator for each thread.
attributes, which make the exception printing subsystem think the exception
is a :exc:`SyntaxError`.
-.. versionadded:: 3.4
+ .. versionadded:: 3.4
.. c:function:: void PyErr_SyntaxLocationEx(char *filename, int lineno, int col_offset)
@@ -329,7 +329,7 @@ in various ways. There is a separate error indicator for each thread.
Like :c:func:`PyErr_SyntaxLocationObject`, but *filename* is a byte string
decoded from the filesystem encoding (:func:`os.fsdecode`).
-.. versionadded:: 3.2
+ .. versionadded:: 3.2
.. c:function:: void PyErr_SyntaxLocation(char *filename, int lineno)
diff --git a/Doc/c-api/object.rst b/Doc/c-api/object.rst
index 509ca3f0fa..3e7c3b64c4 100644
--- a/Doc/c-api/object.rst
+++ b/Doc/c-api/object.rst
@@ -364,6 +364,7 @@ attribute is considered sufficient for this determination.
.. versionadded:: 3.4
+
.. c:function:: PyObject* PyObject_GetItem(PyObject *o, PyObject *key)
Return element of *o* corresponding to the object *key* or *NULL* on failure.