STINNER Victor <vstin...@python.org> added the comment:
> PyThreadState_DeleteCurrent No. bpo-37878 explicitly excluded it from the limited C API. IMO it's too close to the CPython implementation and so must not be added to the stable ABI. > Py_GetArgcArgv No. Python 3.10 now provides sys.orig_argv which can be read in C. https://docs.python.org/dev/library/sys.html#sys.orig_argv Py_GetArgcArgv() is part of the "legacy" C API to initialize Python. The "new" PyConfig API provides PyConfig.orig_argv. FYI in the PyPI top 4000 projects, the function seems to be called by the following projects: 2021-02-18/uWSGI-2.0.19.1.tar.gz 2021-02-18/stem-1.8.0.tar.gz 2021-02-18/sphinx-gallery-0.8.2.tar.gz 2021-02-18/setproctitle-1.2.2.tar.gz 2021-02-18/pyuwsgi-2.0.19.1.post0.tar.gz 2021-02-18/mercurial-5.7.tar.gz 2021-02-18/httpretty-1.0.5.tar.gz 2021-02-18/CherryPy-18.6.0.tar.gz 2021-02-18/aws-encryption-sdk-cli-2.1.0.tar.gz > PyInterpreterState_GetID Yes. It's part of the limited C API. IMO technically, it's ok to add to the stable ABI. I added it to PC/python3dll.c on purpose. Sadly, it's not available on PyPy, but I don't think that the stable ABI must care about PyPy which is a different use case. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43795> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com