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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 55 additions and 55 deletions

View file

@ -804,7 +804,7 @@ _PyImport_ClearModulesByIndex(PyInterpreterState *interp)
substitute this (if the name actually matches).
*/
_Py_thread_local const char *pkgcontext = NULL;
static _Py_thread_local const char *pkgcontext = NULL;
# undef PKGCONTEXT
# define PKGCONTEXT pkgcontext