[issue29441] Update examples to use async and await keywords in asyncio-task.rst

New submission from Berker Peksag:
Attached patch converts all examples that use @coroutine decorator in Doc/library/asyncio-task.rst. I also removed the generator example at https://docs.python.org/3/library/asyncio-task.html#example-coroutine-displa...
See issue 29407 for context.
---------- assignee: docs@python components: Documentation, asyncio files: update-examples-task.diff keywords: patch messages: 286911 nosy: berker.peksag, docs@python, gvanrossum, yselivanov priority: normal severity: normal stage: patch review status: open title: Update examples to use async and await keywords in asyncio-task.rst type: enhancement versions: Python 3.5, Python 3.6, Python 3.7 Added file: http://bugs.python.org/file46508/update-examples-task.diff
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue29441 _______________________________________

Marco Buttu added the comment:
The patch is OK to me. I also executed the examples, and everything works fine :-)
---------- nosy: +marco.buttu
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue29441 _______________________________________

Guido van Rossum added the comment:
LGTM. Thanks!
----------
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue29441 _______________________________________

Roundup Robot added the comment:
New changeset 514571268743 by Berker Peksag in branch '3.5': Issue #29441: Update examples to use async and await keywords in asyncio-task.rst https://hg.python.org/cpython/rev/514571268743
New changeset 975e03b0aea6 by Berker Peksag in branch '3.6': Issue #29441: Merge from 3.5 https://hg.python.org/cpython/rev/975e03b0aea6
New changeset ee074604bf0c by Berker Peksag in branch 'default': Issue #29441: Merge from 3.6 https://hg.python.org/cpython/rev/ee074604bf0c
---------- nosy: +python-dev
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue29441 _______________________________________

Berker Peksag added the comment:
Thanks for the reviews!
---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue29441 _______________________________________

Roundup Robot added the comment:
New changeset dbfbdf9dce7889699e1eb7cc4644a911b16665ec by Berker Peksag in branch '3.6': Issue #29441: Update examples to use async and await keywords in asyncio-task.rst https://github.com/python/cpython/commit/dbfbdf9dce7889699e1eb7cc4644a911b16...
New changeset f76fb14796715fc5abb5a2b68428b29063c3d48e by Berker Peksag in branch '3.6': Issue #29441: Merge from 3.5 https://github.com/python/cpython/commit/f76fb14796715fc5abb5a2b68428b29063c...
----------
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue29441 _______________________________________

Roundup Robot added the comment:
New changeset dbfbdf9dce7889699e1eb7cc4644a911b16665ec by Berker Peksag in branch '3.5': Issue #29441: Update examples to use async and await keywords in asyncio-task.rst https://github.com/python/cpython/commit/dbfbdf9dce7889699e1eb7cc4644a911b16...
----------
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue29441 _______________________________________

Roundup Robot added the comment:
New changeset dbfbdf9dce7889699e1eb7cc4644a911b16665ec by Berker Peksag in branch 'master': Issue #29441: Update examples to use async and await keywords in asyncio-task.rst https://github.com/python/cpython/commit/dbfbdf9dce7889699e1eb7cc4644a911b16...
New changeset f76fb14796715fc5abb5a2b68428b29063c3d48e by Berker Peksag in branch 'master': Issue #29441: Merge from 3.5 https://github.com/python/cpython/commit/f76fb14796715fc5abb5a2b68428b29063c...
New changeset 38c1fd9055ad58738643325a2c7682d76496f9ed by Berker Peksag in branch 'master': Issue #29441: Merge from 3.6 https://github.com/python/cpython/commit/38c1fd9055ad58738643325a2c7682d7649...
----------
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue29441 _______________________________________
participants (4)
-
Berker Peksag
-
Guido van Rossum
-
Marco Buttu
-
Roundup Robot