mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
[3.12] gh-106293: Fix typos in Objects/object_layout.md (GH-106294) (#114158)
(cherry picked from commit 60ca37fdee)
Co-authored-by: Mano Sriram <mano.sriram0@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
parent
50bb9c69e1
commit
b201a6a1f1
1 changed files with 3 additions and 3 deletions
|
|
@ -7,7 +7,7 @@ ## Common header
|
||||||
* ob_refcnt
|
* ob_refcnt
|
||||||
* ob_type
|
* ob_type
|
||||||
|
|
||||||
which the form the header common to all Python objects, for all versions,
|
which form the header common to all Python objects, for all versions,
|
||||||
and hold the reference count and class of the object, respectively.
|
and hold the reference count and class of the object, respectively.
|
||||||
|
|
||||||
## Pre-header
|
## Pre-header
|
||||||
|
|
@ -36,7 +36,7 @@ ## 3.11 pre-header
|
||||||
|
|
||||||
## 3.12 pre-header
|
## 3.12 pre-header
|
||||||
|
|
||||||
In 3.12 the pointer to the list of weak references is added to the
|
In 3.12, the pointer to the list of weak references is added to the
|
||||||
pre-header. In order to make space for it, the ``dict`` and ``values``
|
pre-header. In order to make space for it, the ``dict`` and ``values``
|
||||||
pointers are combined into a single tagged pointer:
|
pointers are combined into a single tagged pointer:
|
||||||
|
|
||||||
|
|
@ -62,7 +62,7 @@ ## Layout of a "normal" Python object in 3.12:
|
||||||
* ob_refcnt
|
* ob_refcnt
|
||||||
* ob_type
|
* ob_type
|
||||||
|
|
||||||
For a "normal" Python object, that is one that doesn't inherit from a builtin
|
For a "normal" Python object, one that doesn't inherit from a builtin
|
||||||
class or have slots, the header and pre-header form the entire object.
|
class or have slots, the header and pre-header form the entire object.
|
||||||
|
|
||||||

|

|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue