Python: Use PyType_Modified() instead of modifying flags.

Closes #2345
Also supported with Py_LIMITED_API
This commit is contained in:
Clinton Stimpson 2022-09-02 14:29:49 -06:00
commit 2a0abbb7f6

View file

@ -1515,7 +1515,7 @@ SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
Py_DECREF(inst);
inst = 0;
} else {
Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG;
PyType_Modified(Py_TYPE(inst));
}
}
}