Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Mar 31, 2020

The _PyErr_WarnUnawaitedCoroutine() fallback now also sets the
coroutine object as the source of the warning, as done by the Python
implementation warnings._warn_unawaited_coroutine().

Moreover, don't truncate the coroutine name: Python supports
arbitrary string length to format the message.

https://bugs.python.org/issue32591

The _PyErr_WarnUnawaitedCoroutine() fallback now also sets the
coroutine object as the source of the warning, as done by the Python
implementation warnings._warn_unawaited_coroutine().

Moreover, don't truncate the coroutine name: Python supports
arbitrary string length to format the message.
@vstinner vstinner merged commit 8d84adc into python:master Mar 31, 2020
@vstinner vstinner deleted the warn_unawaited_coro_c branch March 31, 2020 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants