diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2015-07-07 04:58:12 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2015-07-07 04:58:12 (GMT) |
commit | e36402a83041007b34a111fb20ede88abf4cb223 (patch) | |
tree | 8d1fde887d2d4db289f2c32f383eb7400e65df2a /Doc/c-api | |
parent | 5c676f67d135bd09999ca4160c34be1f39051840 (diff) | |
download | cpython-e36402a83041007b34a111fb20ede88abf4cb223.zip cpython-e36402a83041007b34a111fb20ede88abf4cb223.tar.gz cpython-e36402a83041007b34a111fb20ede88abf4cb223.tar.bz2 |
Fix usage of the default role.
The changes to Doc/library/unittest.mock.rst are almost entirely a
selective backport of the 3.5 page.
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/structures.rst | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/c-api/structures.rst b/Doc/c-api/structures.rst index b925a61..e9e8add 100644 --- a/Doc/c-api/structures.rst +++ b/Doc/c-api/structures.rst @@ -60,7 +60,7 @@ the definition of all other Python objects. .. c:macro:: Py_TYPE(o) - This macro is used to access the `ob_type` member of a Python object. + This macro is used to access the :attr:`ob_type` member of a Python object. It expands to:: (((PyObject*)(o))->ob_type) @@ -68,7 +68,8 @@ the definition of all other Python objects. .. c:macro:: Py_REFCNT(o) - This macro is used to access the `ob_refcnt` member of a Python object. + This macro is used to access the :attr:`ob_refcnt` member of a Python + object. It expands to:: (((PyObject*)(o))->ob_refcnt) @@ -76,7 +77,7 @@ the definition of all other Python objects. .. c:macro:: Py_SIZE(o) - This macro is used to access the `ob_size` member of a Python object. + This macro is used to access the :attr:`ob_size` member of a Python object. It expands to:: (((PyVarObject*)(o))->ob_size) |