Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
In#114314 (3.13) I introduced a regression:set_type misusesPyType_GetDict by modifying it.
importctypesintptr=ctypes.POINTER(ctypes.c_int)print(intptr._type_)# uncomment to hide the issueprint(intptr._type_)intptr.set_type(ctypes.c_float)# a bad idea, but, it should set _type_print(intptr._type_)