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-38722: Runpy use io.open_code() #17234
Conversation
This should be working but test.test_tools is failing when doing the full test. Switching branches to work on something else right now.
@@ -0,0 +1 @@ | |||
:mod:`runpy` now uses :meth:`io.open_code` which will trigger auditing events. |
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.
open()
and io.open()
also trigger auditing events. And as far as I can tell, this won't change anything WRT auditing; it only allows setting an "open code hook" using PyFile_SetOpenCodeHook. So this text needs to be revised.
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.
I've updated with a better description of what the change really means/does.
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Thanks @jsnklln for the PR |
GH-17241 is a backport of this pull request to the 3.8 branch. |
Thanks @jsnklln! |
Thanks, @zooba! Since this is apparently a security-related issue, I've backported it. |
Thanks @jsnklln for the PR |
GH-17244 is a backport of this pull request to the 3.8 branch. |
https://bugs.python.org/issue38722 Automerge-Triggered-By: @taleinat (cherry picked from commit e243bae) Co-authored-by: jsnklln <jsnklln@gmail.com>
https://bugs.python.org/issue38722 Automerge-Triggered-By: @taleinat
https://bugs.python.org/issue38722 Automerge-Triggered-By: @taleinat
https://bugs.python.org/issue38722
Automerge-Triggered-By: @taleinat