Skip to content

Commit 37b9027

Browse files
committed
python#106293: fix documentation typos in Objects/object_layout.md
1 parent 904aef9 commit 37b9027

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Objects/object_layout.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ 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
1414

1515
Since the introduction of the cycle GC, there has also been a pre-header.
1616
Before 3.11, this pre-header was two words in size.
17-
It should be considered opaque to all code except the cycle GC.
17+
It should be considered opaque to all of the code except the cycle GC.
1818

1919
## 3.11 pre-header
2020

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

3737
## 3.12 pre-header
3838

39-
In 3.12 the 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, i.e., the 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)