| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…ythonGH-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 (cherry picked from commit ad0f618) Co-authored-by: Petr Viktorin <encukou@gmail.com>
| Back | FazBrowse Home | New Git URL |
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.
(cherry picked from commit ad0f618)
Co-authored-by: Petr Viktorin encukou@gmail.com
📚 Documentation preview 📚: https://cpython-previews--131078.org.readthedocs.build/