Skip to content

Provide more helpful error message when await is called inside non-async method #70376

@nchammas

Description

@nchammas
mannequin
BPO 26188
Nosy @gvanrossum, @pitrou, @vstinner, @giampaolo, @asvetlov, @vadmium, @1st1, @nchammas

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2017-12-20.21:01:36.773>
created_at = <Date 2016-01-24.02:06:03.383>
labels = ['interpreter-core', 'expert-asyncio']
title = 'Provide more helpful error message when `await` is called inside non-`async` method'
updated_at = <Date 2017-12-20.21:01:36.771>
user = 'https://github.com/nchammas'

bugs.python.org fields:

activity = <Date 2017-12-20.21:01:36.771>
actor = 'asvetlov'
assignee = 'none'
closed = True
closed_date = <Date 2017-12-20.21:01:36.773>
closer = 'asvetlov'
components = ['Interpreter Core', 'asyncio']
creation = <Date 2016-01-24.02:06:03.383>
creator = 'nchammas'
dependencies = []
files = []
hgrepos = []
issue_num = 26188
keywords = []
message_count = 5.0
messages = ['258879', '258989', '259386', '259434', '308813']
nosy_count = 9.0
nosy_names = ['gvanrossum', 'pitrou', 'vstinner', 'giampaolo.rodola', 'asvetlov', 'martin.panter', 'yselivanov', 'nchammas', 'aditya gupta']
pr_nums = []
priority = 'normal'
resolution = 'wont fix'
stage = 'resolved'
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue26188'
versions = ['Python 3.5', 'Python 3.6']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions