Skip to content

gh-117482: Fix Builtin Types Slot Wrappers #121602

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Prev Previous commit
Next Next commit
Do not preserve the index at finalization.
  • Loading branch information
ericsnowcurrently committed Jul 10, 2024
commit 6268b717d056455a5acff6a5c72055cfa25330d9
3 changes: 3 additions & 0 deletions Objects/typeobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -8490,6 +8490,9 @@ init_static_type(PyInterpreterState *interp, PyTypeObject *self,
PyTypeObject *def = managed_static_type_get_def(self, isbuiltin);
if (initial) {
memcpy(def, self, sizeof(PyTypeObject));
/* For now we do not worry about preserving the index
at finalization. */
managed_static_type_index_clear(def);
}

int res;
Expand Down
Loading