| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
@ericsnowcurrently: Oh, that's a "feature" PR, so I will need a formal approval to merge it :-) |
Sorry, something went wrong.
|
I prepared python/pythoncapi-compat#66 to add the function to the pythoncapi-compat project. |
Sorry, something went wrong.
| Return non-zero if the Python interpreter is :term:`shutting down | ||
| <interpreter shutdown>`, return 0 otherwise. |
There was a problem hiding this comment.
Is this referring to the runtime (AKA main interpreter) or to the current interpreter? I'd expect it to be the current interpreter.
Would it make sense to explicitly pass an interpreter and use NULL to mean the current one (or main)?
Sorry, something went wrong.
There was a problem hiding this comment.
I copied the documentation of the sys.is_finalizing() function. If you want a different feature (pass an interpreter), I would prefer to have a different function.
It's set by Py_Finalize() which finalizes the main interpreter: other sub-interpreters should be deleted before explicitly, no?
Sorry, something went wrong.
There was a problem hiding this comment.
I updated the doc to specify that we are talking about the main interpreter.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM.
Sorry, something went wrong.
…3CF.rst Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
Thanks for the review @ericsnowcurrently and @serhiy-storchaka! |
Sorry, something went wrong.
|
Follow-up: @wjakob asks to add this new function to the limited C API version 3.13. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
📚 Documentation preview 📚: https://cpython-previews--108032.org.readthedocs.build/