| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…pport sub-interpreters. (pythonGH-27794) Automerge-Triggered-By: GH:encukou. (cherry picked from commit b9bb748) Co-authored-by: Hai Shi <shihai1992@gmail.com>
|
Thanks for taking this, Łukasz! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
(cherry picked from commit b9bb748)
Co-authored-by: Hai Shi shihai1992@gmail.com
Note: this is a little different from 3.10 and 3.11 because in 3.10+ _Py_IsMainInterpreter takes PyInterpreterState instead of the entire PyThreadState as an argument (see GH-24577 for that).
Also, the new test uses PyModule_AddObjectRef which was only added in Python 3.10 (see GH-23122). I replaced this usage with the old PyModule_AddObject with additional increfs and decrefs per what BPO-42327 prescribes.
https://bugs.python.org/issue44050