Sorry, something went wrong.
|
This change doesn't add the new functions to the limited C API yet. They can be added in a follow-up PR. |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
|
I created an issue for the C API Working Group to add this C API: capi-workgroup/decisions#3 |
Sorry, something went wrong.
|
I expected such API (two functions) to be simple to agree on, but apparently, it's more completed than expected. @encukou now suggests writing a PEP for adding these two functions. I'm already struggling to get a consensus on my PEP 737 – Unify type name formatting. I don't have the bandwidth to fight for too many APIs in parallel. I prefer to close the PR for now. I may reopen it when I will have more bandwidth to look into this topic again. |
Sorry, something went wrong.
|
Since this PR is closed, I created a new PR to implement PEP 741: #123472 |
Sorry, something went wrong.
Add PyConfig_Get() and PyConfig_GetInt() functions to get the current Python configuration.
_PyConfig_AsDict() now converts PyConfig.xoptions as a dictionary.
Discussion: https://discuss.python.org/t/fr-allow-private-runtime-config-to-enable-extending-without-breaking-the-pyconfig-abi/18004
📚 Documentation preview 📚: https://cpython-previews--112609.org.readthedocs.build/