diff options
author | Petr Viktorin <encukou@gmail.com> | 2025-03-11 11:21:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-11 11:21:18 +0100 |
commit | ad0f618ab3eb1f26f8830a863aaf7bb70835c00d (patch) | |
tree | b32ac2538aa51de246074517f3130748abc37d16 /Python/getcompiler.c | |
parent | faadb446d9d26827e23dc1cf68ffb6218bc70d32 (diff) | |
download | cpython-ad0f618ab3eb1f26f8830a863aaf7bb70835c00d.tar.gz cpython-ad0f618ab3eb1f26f8830a863aaf7bb70835c00d.zip |
gh-129675: Update documentation for tp_basicsize & tp_itemsize (#129850)
* Update documentation for tp_basicsize & tp_itemsize
- Add alignment requirement
- Mention that ob_size is unreliable if you don't control it
- Add some links for context
- basicsize should include the base type in generaly not just PyObject
This adds a “by-the-way” link to `PyObject_New`, which shouldn't be
used for GC types. In order to be comfortable linking to it, I also
add a link to `PyObject_GC_New` from its docs. And the same for
`*Var` variants, while I'm here.
* Strongly suggest Py_SIZE & Py_SET_SIZE
Diffstat (limited to 'Python/getcompiler.c')
0 files changed, 0 insertions, 0 deletions