STINNER Victor added the comment:
Thanks for the fix. I already suggested it to Guido van Rossum a few months
ago, but he preferred the keep the example simple. I made the same fix in the 2
hello world examples of the Tulip project last Tuesday, so it's fair to apply
the same fix to asyncio ex
Roundup Robot added the comment:
New changeset f6827c6b1164 by Victor Stinner in branch '3.4':
Closes #21921: Fix ResourceWarning in the asyncio examples: close the event
http://hg.python.org/cpython/rev/f6827c6b1164
New changeset 0533f148fb49 by Victor Stinner in branch 'default':
(Merge 3.4) C
New submission from Vajrasky Kok:
These examples coming from:
https://docs.python.org/3/library/asyncio-eventloop.html#example-hello-world-callback
and
https://docs.python.org/3/library/asyncio-eventloop.html#example-set-signal-handlers-for-sigint-and-sigterm
throw resource usage warning.
One