This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Remove redundant ensure_future() calls in factorial example
Type: enhancement Stage: resolved
Components: asyncio, Documentation Versions: Python 3.7, Python 3.6, Python 3.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: berker.peksag, docs@python, gvanrossum, python-dev, yselivanov
Priority: normal Keywords: patch

Created on 2017-02-01 01:09 by berker.peksag, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
ensure_future.diff berker.peksag, 2017-02-01 01:09 review
Messages (7)
msg286576 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) Date: 2017-02-01 01:09
Unless I'm missing something, ensure_future() calls at https://docs.python.org/3.6/library/asyncio-task.html#example-parallel-execution-of-tasks are redundant and can be removed.

Off-topic: Can we use the async/await keywords in asyncio docs now?
msg286667 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2017-02-01 17:38
LGTM, and should be committed to 3.5 and merged upwards from there.

And yes, it's time for the asyncio docs to converge on async/await everywhere, making `yield from` a footnoot to history.
msg286680 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2017-02-01 19:33
New changeset e4f6874abda6 by Berker Peksag in branch '3.5':
Issue #29407: Remove redundant ensure_future() calls in factorial example
https://hg.python.org/cpython/rev/e4f6874abda6

New changeset 7196ab02b7ce by Berker Peksag in branch '3.6':
Issue #29407: Merge from 3.5
https://hg.python.org/cpython/rev/7196ab02b7ce

New changeset 0990a071751f by Berker Peksag in branch 'default':
Issue #29407: Merge from 3.6
https://hg.python.org/cpython/rev/0990a071751f
msg286681 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) Date: 2017-02-01 19:35
Thanks for the review, Guido.
msg286685 - (view) Author: Roundup Robot (python-dev) (Python triager) Date:
New changeset 94aa4efdf0196de9f99b6f1bd68322939d8d6974 by Berker Peksag in branch '3.6':
Issue #29407: Remove redundant ensure_future() calls in factorial example
https://github.com/python/cpython/commit/94aa4efdf0196de9f99b6f1bd68322939d8d6974

New changeset 96104636fa5bd3054367d4667d86d43690c24293 by Berker Peksag in branch '3.6':
Issue #29407: Merge from 3.5
https://github.com/python/cpython/commit/96104636fa5bd3054367d4667d86d43690c24293
msg286686 - (view) Author: Roundup Robot (python-dev) (Python triager) Date:
New changeset 94aa4efdf0196de9f99b6f1bd68322939d8d6974 by Berker Peksag in branch '3.5':
Issue #29407: Remove redundant ensure_future() calls in factorial example
https://github.com/python/cpython/commit/94aa4efdf0196de9f99b6f1bd68322939d8d6974
msg286687 - (view) Author: Roundup Robot (python-dev) (Python triager) Date:
New changeset 94aa4efdf0196de9f99b6f1bd68322939d8d6974 by Berker Peksag in branch 'master':
Issue #29407: Remove redundant ensure_future() calls in factorial example
https://github.com/python/cpython/commit/94aa4efdf0196de9f99b6f1bd68322939d8d6974

New changeset 96104636fa5bd3054367d4667d86d43690c24293 by Berker Peksag in branch 'master':
Issue #29407: Merge from 3.5
https://github.com/python/cpython/commit/96104636fa5bd3054367d4667d86d43690c24293

New changeset 6b569a0de28e3c341837030d6aa739422d315a6f by Berker Peksag in branch 'master':
Issue #29407: Merge from 3.6
https://github.com/python/cpython/commit/6b569a0de28e3c341837030d6aa739422d315a6f
History
Date User Action Args
2022-04-11 14:58:42adminsetgithub: 73593
2017-02-01 20:00:30python-devsetmessages: + msg286687
2017-02-01 20:00:28python-devsetmessages: + msg286686
2017-02-01 20:00:26python-devsetmessages: + msg286685
2017-02-01 19:35:06berker.peksagsetstatus: open -> closed
resolution: fixed
messages: + msg286681

stage: patch review -> resolved
2017-02-01 19:33:25python-devsetnosy: + python-dev
messages: + msg286680
2017-02-01 17:38:56gvanrossumsetmessages: + msg286667
2017-02-01 01:09:07berker.peksagcreate