]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Docs: Fix documentation for "PyTypeObject Definition" (GH-130936)
authorYuki Kobayashi <drsuaimqjgar@gmail.com>
Wed, 19 Mar 2025 13:46:32 +0000 (22:46 +0900)
committerGitHub <noreply@github.com>
Wed, 19 Mar 2025 13:46:32 +0000 (14:46 +0100)
The structure definition for `PyTypeObject` is in `Include/cpython/object.h`,
not in `Include/object.h`.

Doc/c-api/typeobj.rst

index 5188ecefb982215fb4e26d769febbe78321805a8..c5229d19ca0a6c68f96f634886b742a14c9a1616 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?