]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.15] Docs: Fix incomplete sentence in `tp_itemsize` documentation (GH-152381) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 27 Jun 2026 13:52:57 +0000 (15:52 +0200)
committerGitHub <noreply@github.com>
Sat, 27 Jun 2026 13:52:57 +0000 (13:52 +0000)
(cherry picked from commit 0a21a248cc97eba3d75c7bd07c849ec645aea87b)

Co-authored-by: da-woods <dw-git@d-woods.co.uk>
Doc/c-api/type.rst

index 48eb16bd90834baf0cb24e7d188de044c72592ad..6b68c0d085589a16268366189a36ee9710681899 100644 (file)
@@ -639,7 +639,7 @@ but need extra remarks for use as slots:
    in the following situations:
 
    - The base is not variable-sized (its
-     :c:member:`~PyTypeObject.tp_itemsize`).
+     :c:member:`~PyTypeObject.tp_itemsize` is zero).
    - The requested :c:member:`PyType_Spec.basicsize` is positive,
      suggesting that the memory layout of the base class is known.
    - The requested :c:member:`PyType_Spec.basicsize` is zero,