-
-
Notifications
You must be signed in to change notification settings - Fork 31k
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
GH-121970: Rewrite the C-API annotations extension #121985
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks for refreshing this extension!
Some nitpicks:
Co-authored-by: Petr Viktorin <[email protected]>
Thanks @AA-Turner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
Sorry, @AA-Turner, I could not cleanly backport this to
|
Sorry, @AA-Turner, I could not cleanly backport this to
|
Thanks @AA-Turner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
Sorry, @AA-Turner, I could not cleanly backport this to
|
…onGH-121985) (cherry picked from commit 22c9d9c) Co-authored-by: Adam Turner <[email protected]> Co-authored-by: Petr Viktorin <[email protected]>
GH-122025 is a backport of this pull request to the 3.12 branch. |
Co-authored-by: Petr Viktorin <[email protected]> (cherry picked from commit 22c9d9c)
GH-122027 is a backport of this pull request to the 3.13 branch. |
…#122025) (cherry picked from commit 22c9d9c) Co-authored-by: Petr Viktorin <[email protected]>
I've tested the output before and after this commit, entirely equal save for a new link target in
c-api/module.html#c.Py_mod_create.create_module
andc-api/module.html#c.Py_mod_exec.exec_module
(because we switch from patching in:noindex:
to using the C Domain's supported:no-index-entry:
).This introduces some new dataclasses, removes the state stored in closures and the
Annotated
class instance, and does some small cleanups. Notably,stable_abi.dat
is changed to storing the role name rather than the object type, which simplifies things a little.A
📚 Documentation preview 📚: https://cpython-previews--121985.org.readthedocs.build/en/121985/c-api/index.html
pyspecific
#121970