Skip to content

gh-108512: Add and use new replacements for PySys_GetObject() (alt) #129736

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Feb 6, 2025

Add functions PySys_GetAttr() and PySys_GetAttrString().

This is an alternative to #111035 which only adds functions that request optional attributes, renamed to PySys_GetAttr() and PySys_GetAttrString(), to the public C API. Functions that raise RuntimeError for absent attributes are added as internal functions _PySys_GetRequiredAttr() and _PySys_GetRequiredAttrString().


📚 Documentation preview 📚: https://cpython-previews--129736.org.readthedocs.build/

Add functions PySys_GetAttr() and PySys_GetAttrString().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant