Skip to content

bpo-29922: Improve error messages in 'async with' #6352

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
Apr 2, 2018

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Apr 2, 2018

when __aenter__() or __aexit__() return non-awaitable object.

https://bugs.python.org/issue29922

when __aenter__() or __aexit__() return non-awaitable object.
@serhiy-storchaka serhiy-storchaka added the type-feature A feature request or enhancement label Apr 2, 2018
@1st1
Copy link
Member

1st1 commented Apr 2, 2018

Nice! Can we please backport this to 3.6?

@miss-islington
Copy link
Contributor

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.6, 3.7.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-6353 is a backport of this pull request to the 3.7 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Apr 2, 2018
when __aenter__() or __aexit__() return non-awaitable object.
(cherry picked from commit a68f2f0)

Co-authored-by: Serhiy Storchaka <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Apr 2, 2018
when __aenter__() or __aexit__() return non-awaitable object.
(cherry picked from commit a68f2f0)

Co-authored-by: Serhiy Storchaka <[email protected]>
@bedevere-bot
Copy link

GH-6354 is a backport of this pull request to the 3.6 branch.

miss-islington added a commit that referenced this pull request Apr 4, 2018
when __aenter__() or __aexit__() return non-awaitable object.
(cherry picked from commit a68f2f0)

Co-authored-by: Serhiy Storchaka <[email protected]>
miss-islington added a commit that referenced this pull request Apr 4, 2018
when __aenter__() or __aexit__() return non-awaitable object.
(cherry picked from commit a68f2f0)

Co-authored-by: Serhiy Storchaka <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-feature A feature request or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants