Skip to content

Conversation

@skirpichev
Copy link
Member

@skirpichevskirpichev commented Jul 2, 2024

This amends 6988ff0: memory allocation for stginfo->ffi_type_pointer.elements in PyCSimpleType_init() should be more generic (perhaps someday fmt->pffi_type->elements will be not a two-elements array).

It should finally resolve#61103.


📚 Documentation preview 📚: https://cpython-previews--121248.org.readthedocs.build/

… module This amends 6988ff0: memory allocation for stginfo->ffi_type_pointer.elements in PyCSimpleType_init() should be more generic (perhaps someday fmt->pffi_type->elements will be not a two-elements array). It should finally resolvepython#61103.
@nineteendo
Copy link
Contributor

Looking good, if merged this would fix the table of complex types only having a single row.

skirpichevand others added 2 commits July 2, 2024 11:04
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Copy link
Member

@vstinnervstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vstinnervstinner merged commit 51c4a32 into python:mainJul 3, 2024
@skirpichevskirpichev deleted the ctypes-floatlong-complex-61103 branch July 3, 2024 09:23
noahbkim pushed a commit to hudson-trading/cpython that referenced this pull request Jul 11, 2024
… module (python#121248) This amends 6988ff0: memory allocation for stginfo->ffi_type_pointer.elements in PyCSimpleType_init() should be more generic (perhaps someday fmt->pffi_type->elements will be not a two-elements array). It should finally resolvepython#61103. Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
estyxx pushed a commit to estyxx/cpython that referenced this pull request Jul 17, 2024
… module (python#121248) This amends 6988ff0: memory allocation for stginfo->ffi_type_pointer.elements in PyCSimpleType_init() should be more generic (perhaps someday fmt->pffi_type->elements will be not a two-elements array). It should finally resolvepython#61103. Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for C99 complex type (_Complex) as ctypes.c_complex

4 participants

@skirpichev@nineteendo@vstinner@picnixz