Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upbpo-39048: Look up __aenter__ before __aexit__ in the async with statement #17609
Conversation
The change itself looks good to me - just a request for another test case to cover the second error handling branch (if we had already had such a test, we would have picked up the refleak in the previous iteration of the code). We'll also need a NEWS entry. |
This comment has been minimized.
This comment has been minimized.
bedevere-bot
commented
Dec 31, 2019
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 |
This comment has been minimized.
This comment has been minimized.
@maggyero, please address the code review when you get a chance. Thank you! |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@maggyero, thank you. I just wanted to make sure you had seen the review. |
This comment has been minimized.
This comment has been minimized.
I have made the requested changes; please review again. |
This comment has been minimized.
This comment has been minimized.
bedevere-bot
commented
Jan 13, 2020
Thanks for making the requested changes! @ncoghlan: please review the changes made to this pull request. |
Misc/NEWS.d/next/Core and Builtins/2020-01-13-14-45-22.bpo-39048.iPsj81.rst
Outdated
Show resolved
Hide resolved
1d1b97a
into
python:master
This comment has been minimized.
This comment has been minimized.
Thank you for the patch! |
This comment has been minimized.
This comment has been minimized.
Thank you for the review @ncoghlan (and @rhettinger)! |
This comment has been minimized.
This comment has been minimized.
@ncoghlan Like for PR #17608, shouldn’t we back port this PR to the 3.8 branch? |
This comment has been minimized.
This comment has been minimized.
No, this one isn't eligible for backport as it's a behavioural change, whereas the previous PR was just a docs update. |
This comment has been minimized.
This comment has been minimized.
Alright @ncoghlan! |
maggyero commentedDec 14, 2019
•
edited
This PR will make the following changes:
__aenter__
method before the__aexit__
method in theasync with
statement code;__aenter__
method before the__aexit__
method in theasync with
statement documentation;async with
statement.https://bugs.python.org/issue39048