| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks for this PR!
We should probably mention in the news entry that because we use io.open_code, we'll now trigger auditing events hooks
Sorry, something went wrong.
io.open() also raise auditing events. According to the docs,
io.open_code() should behave the same as io.open(path, 'rb'), so is there an auditing event difference? |
Sorry, something went wrong.
|
Ah, I meant the PyFile_SetOpenCodeHook() hook from PEP 578. I'm not sure what the best phrase is, but it was described as auditing event in #17127. Maybe "auditing hook" as per the PEP? |
Sorry, something went wrong.
|
So it seems like changing it to io.open_code() makes it possible to call into the hook set by PyFile_SetOpenCodeHook()? Is that something expected in the news entry? |
Sorry, something went wrong.
|
Yup! I think can't hurt to mention it in the news entry, since it is a (good) change in behaviour and one that seems potentially noteworthy. |
Sorry, something went wrong.
I updated the news entry. Let me know if you think that requires extra polish! |
Sorry, something went wrong.
There was a problem hiding this comment.
Looks great, thanks!
Sorry, something went wrong.
|
Thanks @gaogaotiantian for the PR, and @hauntsaninja for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Sorry, something went wrong.
|
GH-103867 is a backport of this pull request to the 3.11 branch. |
Sorry, something went wrong.
…103581) `pdb` should use `io.open_code` to open code to avoid encoding issue.
|
Thanks @gaogaotiantian for the PR, and @hauntsaninja for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8. |
Sorry, something went wrong.
|
Thanks @gaogaotiantian for the PR, and @hauntsaninja for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9. |
Sorry, something went wrong.
|
Thanks @gaogaotiantian for the PR, and @hauntsaninja for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10. |
Sorry, something went wrong.
|
Sorry @gaogaotiantian and @hauntsaninja, I had trouble checking out the 3.8 backport branch. |
Sorry, something went wrong.
|
Sorry, @gaogaotiantian and @hauntsaninja, I could not cleanly backport this to 3.9 due to a conflict. |
Sorry, something went wrong.
|
Sorry @gaogaotiantian and @hauntsaninja, I had trouble checking out the 3.10 backport branch. |
Sorry, something went wrong.
|
Thanks @gaogaotiantian for the PR, and @hauntsaninja for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10. |
Sorry, something went wrong.
|
Sorry, @gaogaotiantian and @hauntsaninja, I could not cleanly backport this to 3.10 due to a conflict. |
Sorry, something went wrong.
|
No backport needed - this was fine in 3.8-3.10 and was regressed in 3.11. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
pdb should use io.open_code to open code to avoid encoding issue.