-
-
Notifications
You must be signed in to change notification settings - Fork 32.8k
Closed
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixesextension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
In #114314 (3.13) I introduced a regression: set_type
misuses PyType_GetDict
by modifying it.
import ctypes
intptr = ctypes.POINTER(ctypes.c_int)
print(intptr._type_) # uncomment to hide the issue
print(intptr._type_)
intptr.set_type(ctypes.c_float) # a bad idea, but, it should set _type_
print(intptr._type_)
Linked PRs
Metadata
Metadata
Assignees
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixesextension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error