bpo-38304: Remove PyConfig.struct_size (GH-16500)

For now, we'll rely on the fact that the config structures aren't covered by the stable ABI.

We may revisit this in the future if we further explore the idea of offering a stable embedding API.
This commit is contained in:
Victor Stinner 2019-10-01 00:46:42 +02:00 committed by Nick Coghlan
parent 92ca515ee1
commit bdace21b76
14 changed files with 39 additions and 273 deletions

View file

@ -40,7 +40,6 @@ Py_FrozenMain(int argc, char **argv)
}
PyConfig config;
config.struct_size = sizeof(PyConfig);
status = PyConfig_InitPythonConfig(&config);
if (PyStatus_Exception(status)) {
PyConfig_Clear(&config);