]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-110803: Reorganize docs for what PyType_Slot doesn't cover (GH-110813)...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 13 Oct 2023 12:59:55 +0000 (14:59 +0200)
committerGitHub <noreply@github.com>
Fri, 13 Oct 2023 12:59:55 +0000 (12:59 +0000)
commitf2e353b9d85384f1e6320e8bd3e300a22994535a
treea8da1e70f26f6730df835759de3b77c4c5ea2212
parent08242cdd7bd65865a6f1000671e958cf687b4f45
[3.12] gh-110803: Reorganize docs for what PyType_Slot doesn't cover (GH-110813) (#110823)

gh-110803: Reorganize docs for what PyType_Slot doesn't cover (GH-110813)

* gh-110803: Reorganize docs for what PyType_Slot doesn't cover

- Cover the offset fields first
- Mention the old alternative for MANAGED flags, which is needed
  to support older Pythons
- De-emphasize the internal flags: use an inline list.
- Add a note to PyMemberDef saying what to do with it

* Remove an older draft...
(cherry picked from commit 2ab34f0e425d90d0a153104ef2f4343dce2a414d)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Doc/c-api/structures.rst
Doc/c-api/type.rst