Skip to content

[3.8] bpo-39037: Fix lookup order of magic methods in with statement documentation (GH-17608) #17749

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

Merged
merged 1 commit into from
Dec 30, 2019

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Dec 30, 2019

  • enter is now looked up before exit to give a more intuitive error message
  • add pseudo-code equivalent for the with statement
  • fix pseudo-code for the async with statement to use a finally clause
  • use SUITE rather than BLOCK for consistency with the language grammar

Patch by Géry Ogam.
(cherry picked from commit 226e6e7)

Co-authored-by: Géry Ogam [email protected]

https://bugs.python.org/issue39037

…ntation (pythonGH-17608)

* __enter__ is now looked up before __exit__ to give a more intuitive error message
* add pseudo-code equivalent for the with statement
* fix pseudo-code for the async with statement to use a finally clause
* use SUITE rather than BLOCK for consistency with the language grammar

Patch by Géry Ogam.
(cherry picked from commit 226e6e7)

Co-authored-by: Géry Ogam <[email protected]>
@miss-islington
Copy link
Contributor Author

@maggyero and @ncoghlan: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit cbfafa3 into python:3.8 Dec 30, 2019
@miss-islington miss-islington deleted the backport-226e6e7-3.8 branch December 30, 2019 05:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants