This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2020-04-15.13:50:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1586958607.0.0.0698720378269.issue40268@roundup.psfhosted.org>
In-reply-to
Content
> It exposes too many internals whereas most consumers only need basic functions like _PyThreadState_GET().

That's basically done: pycore_pystate.h no longer defines PyInterpreterState structure. pycore_interp.h must now be included explicitly. It's now included by the following files:

* Modules/gcmodule.c
* Modules/_io/textio.c
* Modules/main.c
* Modules/_threadmodule.c
* Objects/codeobject.c
* Objects/interpreteridobject.c
* Objects/longobject.c
* Objects/moduleobject.c
* Objects/unicodeobject.c
* Parser/listnode.c
* Python/codecs.c
* Python/dynload_shlib.c
* Python/import.c
* Python/initconfig.c
* Python/pythonrun.c
* Python/_warnings.c

I also pushed many cleanup changes. I think that it's now enough, I close the issue ;-)
History
Date User Action Args
2020-04-15 13:50:07vstinnersetrecipients: + vstinner
2020-04-15 13:50:06vstinnersetmessageid: <1586958607.0.0.0698720378269.issue40268@roundup.psfhosted.org>
2020-04-15 13:50:06vstinnerlinkissue40268 messages
2020-04-15 13:50:06vstinnercreate