-
-
Notifications
You must be signed in to change notification settings - Fork 34.6k
ctypes: Deprecate SetPointerType() and ARRAY() functions #105733
Copy link
Copy link
Closed
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-ctypestype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-ctypestype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
The ctypes module has two undocumented functions: SetPointerType() and ARRAY(). These functions are marked as
XXX Deprecated, but only in comments.I propose to deprecate
ctypes.SetPointerType()andctypes.ARRAY()by emitting a DeprecationWarning warning.These functions are not documented and not used in Python, but there are tested.
Linked PRs