◐ Shell
clean mode source ↗

gh-108907: ctypes: Document _type_ codes by encukou · Pull Request #145837 · python/cpython

Add `_SimpleCData._type_` docs.

Add type codes to the summary table.

Cross-link `struct`, `array`, and `ctypes`; throw in `numpy` too.
(Anyone wanting to add a code should be aware of those.)

Add `py_object`, and `VARIANT_BOOL` for completeness.

skirpichev

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Mar 23, 2026
Add `_SimpleCData._type_` docs.

Add type codes to the summary table.

Cross-link `struct`, `array`, and `ctypes`; throw in `numpy` too.
(Anyone wanting to add a code should be aware of those.)

Add `py_object`, and `VARIANT_BOOL` for completeness.
(cherry picked from commit 1114d7f)

Co-authored-by: Petr Viktorin <encukou@gmail.com>

encukou added a commit that referenced this pull request

Mar 23, 2026
gh-108907: ctypes: Document _type_ codes (GH-145837)

Add `_SimpleCData._type_` docs.

Add type codes to the summary table.

Cross-link `struct`, `array`, and `ctypes`; throw in `numpy` too.
(Anyone wanting to add a code should be aware of those.)

Add `py_object`, and `VARIANT_BOOL` for completeness.
(cherry picked from commit 1114d7f)

Co-authored-by: Petr Viktorin <encukou@gmail.com>

CuriousLearner added a commit to CuriousLearner/cpython that referenced this pull request

Mar 23, 2026

ljfp pushed a commit to ljfp/cpython that referenced this pull request

Apr 25, 2026
Add `_SimpleCData._type_` docs.

Add type codes to the summary table.

Cross-link `struct`, `array`, and `ctypes`; throw in `numpy` too.
(Anyone wanting to add a code should be aware of those.)

Add `py_object`, and `VARIANT_BOOL` for completeness.