-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
bpo-36842: Implement PEP 578 #12613
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
bpo-36842: Implement PEP 578 #12613
Conversation
The PEP is not approved yet, of course, so the PR isn't finished. But I want it to at least run through CI now to catch anything that's going on. |
Removing the import team from reviewing as this is still a WIP. We can be added back when it's ready to go. |
Patch to use METH_FASTCALL:
By the way, I might be useful to extract the code from PySys_Audit() to decide if audit is used or not: create a subfunction, and call it from sys_audit() to do nothing if audit is not used (common case). Calling PyUnicode_AsUTF8() and _PyTuple_FromArray() is not free :-) (I know that they are fast, but many function calls take less than 100 ns overall.) |
@tiran I believe all feedback has been addressed, and all tests pass (custom buildbot run going now). Anything else? |
I have made the requested changes; please review again |
Thanks for making the requested changes! @tiran: please review the changes made to this pull request. |
@tiran I know you're busy with your PEP, but this is waiting on you. I'll give it two more merge conflicts from other commits before I consider your feedback addressed and merge :) |
That's the second conflict, so I'm dismissing @tiran's review and we can deal with any further issues post-commit. |
Adds sys.audit, sys.addaudithook, io.open_code, and associated C APIs.
https://bugs.python.org/issue36842