Skip to content

Commit efeec29

Browse files
committed
Removing these changes
Signed-off-by: Matthew A Johnson <matjoh@microsoft.com>
1 parent 295e983 commit efeec29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/c-api/typeobj.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2591,9 +2591,9 @@ Slot Type typedefs
25912591
The purpose of this function is to separate memory allocation from memory
25922592
initialization. It should return a pointer to a block of memory of adequate
25932593
length for the instance, suitably aligned, and initialized to zeros, but with
2594-
:c:member:`~PyObject.ob_refcnt` set to ``2`` and :c:member:`~PyObject.ob_type` set to the type argument. If
2594+
:c:member:`~PyObject.ob_refcnt` set to ``1`` and :c:member:`~PyObject.ob_type` set to the type argument. If
25952595
the type's :c:member:`~PyTypeObject.tp_itemsize` is non-zero, the object's :c:member:`~PyVarObject.ob_size` field
2596-
should be initialized to *nitems * 2* and the length of the allocated memory block
2596+
should be initialized to *nitems* and the length of the allocated memory block
25972597
should be ``tp_basicsize + nitems*tp_itemsize``, rounded up to a multiple of
25982598
``sizeof(void*)``; otherwise, *nitems* is not used and the length of the block
25992599
should be :c:member:`~PyTypeObject.tp_basicsize`.

0 commit comments

Comments
 (0)