File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 `.
You can’t perform that action at this time.
0 commit comments