[WIP] bpo-39511: Add Py_GetNone() and Py_GetNoneRef() functions by vstinner · Pull Request #18301 · python/cpython

Conversation

* Add PyInterpreterState.none field
* Add _Py_InitSingletons() and _Py_FiniSingletons()
* Remove _Py_NoneStruct from the public C API.

@vstinner

PR rebased on the master branch.

@vstinner

I still consider that this PR is a good way to solve https://bugs.python.org/issue39511 but I simply lack time to finish the work. I prefer to close the PR to reduce the number of open PRs that I have.

Labels