File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Each Python object starts with two fields:
7
7
* ob_refcnt
8
8
* ob_type
9
9
10
- which the form the header common to all Python objects, for all versions,
10
+ which form the header common to all Python objects, for all versions,
11
11
and hold the reference count and class of the object, respectively.
12
12
13
13
## Pre-header
@@ -36,7 +36,7 @@ and the ``dict`` field points to the dictionary.
36
36
37
37
## 3.12 pre-header
38
38
39
- In 3.12 the pointer to the list of weak references is added to the
39
+ In 3.12, the pointer to the list of weak references is added to the
40
40
pre-header. In order to make space for it, the `` dict `` and `` values ``
41
41
pointers are combined into a single tagged pointer:
42
42
@@ -62,7 +62,7 @@ the values pointer, to enable the (legacy) C-API function
62
62
* ob_refcnt
63
63
* ob_type
64
64
65
- For a "normal" Python object, that is one that doesn't inherit from a builtin
65
+ For a "normal" Python object, one that doesn't inherit from a builtin
66
66
class or have slots, the header and pre-header form the entire object.
67
67
68
68
![ Layout of "normal" object in 3.12] ( ./object_layout_312.png )
You can’t perform that action at this time.
0 commit comments