-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Closed
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtopic-C-APItype-featureA feature request or enhancementA feature request or enhancement
Description
Feature or enhancement
The _ctypes extension implements types as static types. They should be converted to heap types: see issue gh-103092 for the rationale.
Problem: the PyCStgDict type is kind of special, it's a "metaclass" which creates a new class and then replaces the class namespace (type dict) with a custom "stgdict". See the PyCStructType_new() function.
Previous attempts to convert _ctypes types to heap types:
- April 2023: PR gh-103092: Adapt _ctypes's PyCStgDict type to heap type #103932
- January 2024: PR gh-103092: Port some
_ctypesdata types to heap types #113630
Linked PRs
erlend-aasland and aisk
Metadata
Metadata
Assignees
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtopic-C-APItype-featureA feature request or enhancementA feature request or enhancement