diff options
author | Mano Sriram <mano.sriram0@gmail.com> | 2024-01-16 23:11:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-16 23:11:15 (GMT) |
commit | 60ca37fdee52cc4ff318b6e9ddbb260e8583b33b (patch) | |
tree | cd0ee2590856c564b33b50d77eaa6b246ce6ba09 /Objects | |
parent | 45e527dfb553a5687aad828260cda85f02b9b6f8 (diff) | |
download | cpython-60ca37fdee52cc4ff318b6e9ddbb260e8583b33b.zip cpython-60ca37fdee52cc4ff318b6e9ddbb260e8583b33b.tar.gz cpython-60ca37fdee52cc4ff318b6e9ddbb260e8583b33b.tar.bz2 |
gh-106293: Fix typos in Objects/object_layout.md (#106294)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/object_layout.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/object_layout.md b/Objects/object_layout.md index 3f7d72e..4f379be 100644 --- a/Objects/object_layout.md +++ b/Objects/object_layout.md @@ -7,7 +7,7 @@ Each Python object starts with two fields: * ob_refcnt * 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. ## Pre-header @@ -36,7 +36,7 @@ and the ``dict`` field points to the dictionary. ## 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`` pointers are combined into a single tagged pointer: @@ -62,7 +62,7 @@ the values pointer, to enable the (legacy) C-API function * ob_refcnt * 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. ![Layout of "normal" object in 3.12](./object_layout_312.png) |