bpo-38031: Fix a possible assertion failure in _io.FileIO() by ZackerySpytz · Pull Request #15688 · python/cpython
Conversation
Use PyErr_Fetch() / _PyErr_ChainExceptions() when calling
internal_close() on error. The opener may return an invalid
fd, which will cause the close() call in internal_close() to fail.
Use PyErr_Fetch() / _PyErr_ChainExceptions() when calling internal_close() on error. The opener may return an invalid fd, which will cause the close() call in internal_close() to fail.
aeros
left a comment
•
Loading
aeros
left a comment
•
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly LGTH. Just address Victor's comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Converted @vstinner's comment into suggestions.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for updating the PR @iritkatriel ;-)
Thanks @ZackerySpytz for the PR, and @iritkatriel for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11.
🐍🍒⛏🤖
This was referenced