diff options
author | Benjamin Peterson <benjamin@python.org> | 2015-01-13 14:17:24 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2015-01-13 14:17:24 (GMT) |
commit | 07f90476b954382e7a7ce95af696d90100a6eea1 (patch) | |
tree | ed0760ec0d5e55ed37a067e05119b81066367abf /Doc/c-api | |
parent | 6022f38dd80945ed512f3f8440e0220afebc2a3e (diff) | |
download | cpython-07f90476b954382e7a7ce95af696d90100a6eea1.zip cpython-07f90476b954382e7a7ce95af696d90100a6eea1.tar.gz cpython-07f90476b954382e7a7ce95af696d90100a6eea1.tar.bz2 |
fix instances of consecutive articles (closes #23221)
Patch by Karan Goel.
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/exceptions.rst | 2 | ||||
-rw-r--r-- | Doc/c-api/init.rst | 2 | ||||
-rw-r--r-- | Doc/c-api/structures.rst | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst index 91964d0..6f8f243 100644 --- a/Doc/c-api/exceptions.rst +++ b/Doc/c-api/exceptions.rst @@ -70,7 +70,7 @@ is a separate error indicator for each thread. Do not compare the return value to a specific exception; use :c:func:`PyErr_ExceptionMatches` instead, shown below. (The comparison could easily fail since the exception may be an instance instead of a class, in the - case of a class exception, or it may the a subclass of the expected exception.) + case of a class exception, or it may be a subclass of the expected exception.) .. c:function:: int PyErr_ExceptionMatches(PyObject *exc) diff --git a/Doc/c-api/init.rst b/Doc/c-api/init.rst index 46fc93f..0c1c714 100644 --- a/Doc/c-api/init.rst +++ b/Doc/c-api/init.rst @@ -1136,7 +1136,7 @@ These functions are only intended to be used by advanced debugging tools. .. c:function:: PyThreadState * PyInterpreterState_ThreadHead(PyInterpreterState *interp) - Return the a pointer to the first :c:type:`PyThreadState` object in the list of + Return the pointer to the first :c:type:`PyThreadState` object in the list of threads associated with the interpreter *interp*. .. versionadded:: 2.2 diff --git a/Doc/c-api/structures.rst b/Doc/c-api/structures.rst index e31687f..c193510 100644 --- a/Doc/c-api/structures.rst +++ b/Doc/c-api/structures.rst @@ -122,7 +122,7 @@ The :attr:`ml_meth` is a C function pointer. The functions may be of different types, but they always return :c:type:`PyObject\*`. If the function is not of the :c:type:`PyCFunction`, the compiler will require a cast in the method table. Even though :c:type:`PyCFunction` defines the first parameter as -:c:type:`PyObject\*`, it is common that the method implementation uses a the +:c:type:`PyObject\*`, it is common that the method implementation uses the specific C type of the *self* object. The :attr:`ml_flags` field is a bitfield which can include the following flags. |