Skip to content

Commit 981da1e

Browse files
manosriramterryjreedy
authored andcommitted
pythongh-106293: Fix typos in Objects/object_layout.md (python#106294)
Co-authored-by: Terry Jan Reedy <[email protected]>
1 parent 07fb4d8 commit 981da1e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Objects/object_layout.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Each Python object starts with two fields:
77
* ob_refcnt
88
* ob_type
99

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,
1111
and hold the reference count and class of the object, respectively.
1212

1313
## Pre-header
@@ -36,7 +36,7 @@ and the ``dict`` field points to the dictionary.
3636

3737
## 3.12 pre-header
3838

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
4040
pre-header. In order to make space for it, the ``dict`` and ``values``
4141
pointers are combined into a single tagged pointer:
4242

@@ -62,7 +62,7 @@ the values pointer, to enable the (legacy) C-API function
6262
* ob_refcnt
6363
* ob_type
6464

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
6666
class or have slots, the header and pre-header form the entire object.
6767

6868
![Layout of "normal" object in 3.12](./object_layout_312.png)

0 commit comments

Comments
 (0)