Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cb78a03

Browse files
set_pointer for type should reset type cache
1 parent 2fc600b commit cb78a03

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Modules/_ctypes/_ctypes.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,6 +1383,8 @@ PyCPointerType_set_type_impl(PyTypeObject *self, PyTypeObject *cls,
13831383
return NULL;
13841384
}
13851385

1386+
PyType_Modified(self);
1387+
13861388
Py_DECREF(attrdict);
13871389
Py_RETURN_NONE;
13881390
}

0 commit comments

Comments
 (0)