]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] Docs: Fix documentation for "PyTypeObject Definition" (GH-130936) (GH-131459)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 20 Mar 2025 12:41:22 +0000 (13:41 +0100)
committerGitHub <noreply@github.com>
Thu, 20 Mar 2025 12:41:22 +0000 (13:41 +0100)
The structure definition for `PyTypeObject` is in `Include/cpython/object.h`,
not in `Include/object.h`.
(cherry picked from commit a0478c9f0c6d6a75ca35a8dc2c74d3b58877f094)

Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
Doc/c-api/typeobj.rst

index ddcbe91d487e63c442d2ce834439a2b814347379..5bb8f3d57e9640db5f3b68866019441d0a23f85c 100644 (file)
@@ -473,7 +473,7 @@ PyTypeObject Definition
 -----------------------
 
 The structure definition for :c:type:`PyTypeObject` can be found in
-:file:`Include/object.h`.  For convenience of reference, this repeats the
+:file:`Include/cpython/object.h`.  For convenience of reference, this repeats the
 definition found there:
 
 .. XXX Drop this?