Skip to content

Commit

Permalink
pep492: Clarify that only native coroutines can emit ResourceWarning …
Browse files Browse the repository at this point in the history
…on GC
  • Loading branch information
1st1 committed Nov 8, 2016
1 parent 747dce3 commit 39b84d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pep-0492.txt
Expand Up @@ -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.

Expand Down

0 comments on commit 39b84d1

Please sign in to comment.