You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ctypes pointer set_type doesn't cache when setting _type_ #133290
In #114314 (3.13) I introduced a regression: set_type misuses PyType_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_)
Activity
pythongh-133290: Use PyObject_SetAttr to set _type_
gh-133290: Use PyObject_SetAttr to set _type_ (GH-133292)
pythongh-133290: Use PyObject_SetAttr to set _type_ (pythonGH-133292)
[3.13] gh-133290: Use PyObject_SetAttr to set _type_ (GH-133292) (GH-…
pythongh-133290: Use PyObject_SetAttr to set _type_ (pythonGH-133292)