summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/init.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2023-07-27 05:52:54 (GMT)
committerGitHub <noreply@github.com>2023-07-27 05:52:54 (GMT)
commitd363eb5b0255c055e7b43f5e2c0847f555e1982e (patch)
tree126be9692e95625c5fb5c32781ef9ca0d21da187 /Doc/c-api/init.rst
parent8d61a71f9c81619e34d4a30b625922ebc83c561b (diff)
downloadcpython-d363eb5b0255c055e7b43f5e2c0847f555e1982e.zip
cpython-d363eb5b0255c055e7b43f5e2c0847f555e1982e.tar.gz
cpython-d363eb5b0255c055e7b43f5e2c0847f555e1982e.tar.bz2
gh-107091: Fix some uses of :attr: role (GH-107318)
Fix also formatting of PyMethodDef members.
Diffstat (limited to 'Doc/c-api/init.rst')
-rw-r--r--Doc/c-api/init.rst7
1 files changed, 5 insertions, 2 deletions
diff --git a/Doc/c-api/init.rst b/Doc/c-api/init.rst
index 8d495da..a447eef 100644
--- a/Doc/c-api/init.rst
+++ b/Doc/c-api/init.rst
@@ -827,8 +827,11 @@ code, or when embedding the Python interpreter:
.. c:type:: PyThreadState
This data structure represents the state of a single thread. The only public
- data member is :attr:`interp` (:c:expr:`PyInterpreterState *`), which points to
- this thread's interpreter state.
+ data member is:
+
+ .. c:member:: PyInterpreterState *interp
+
+ This thread's interpreter state.
.. c:function:: PyThreadState* PyEval_SaveThread()