pep492: Clarify that only native coroutines can emit ResourceWarning on GC

This commit is contained in:
Yury Selivanov 2016-11-08 12:20:03 -05:00
parent 747dce3504
commit 39b84d15f5
1 changed files with 3 additions and 2 deletions

View File

@ -156,8 +156,9 @@ Key properties of *coroutines*:
and are replaced with a ``RuntimeError``. For regular generators
such behavior requires a future import (see PEP 479).
* When a *coroutine* is garbage collected, a ``RuntimeWarning`` is
raised if it was never awaited on (see also `Debugging Features`_).
* When a *native coroutine* is garbage collected, a ``RuntimeWarning``
is raised if it was never awaited on (see also
`Debugging Features`_).
* See also `Coroutine objects`_ section.