gh-141376: Fix exported symbols (GH-141377)

* gh-141376: Fix exported symbols

* _io module: add "_Py_" prefix to "spec" variables. For example,
  rename bufferedrandom_spec to _Py_bufferedrandom_spec.
* typevarobject.c: add "static" to "spec" and "slots" variables.
* import.c: add "static" to "pkgcontext" variable.

* No longer export textiowrapper_slots
This commit is contained in:
Victor Stinner
2025-11-11 09:21:24 +01:00
committed by GitHub
parent 92741c59f8
commit 8435a2278f
11 changed files with 55 additions and 55 deletions

View File

@@ -1253,7 +1253,7 @@ static PyType_Slot winconsoleio_slots[] = {
{0, NULL},
};
PyType_Spec winconsoleio_spec = {
PyType_Spec _Py_winconsoleio_spec = {
.name = "_io._WindowsConsoleIO",
.basicsize = sizeof(winconsoleio),
.flags = (Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HAVE_GC |