Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upDocs: Add asyncio source code links #16640
Conversation
:term:`Coroutines <coroutine>` declared with the async/await syntax is the | ||
preferred way of writing asyncio applications. For example, the following | ||
snippet of code (requires Python 3.7+) prints "hello", waits 1 second, |
This comment has been minimized.
This comment has been minimized.
aeros
Oct 8, 2019
Author
Member
I had to adjust the word wrapping here after adding the Sphinx role and grammar fix.
This comment has been minimized.
This comment has been minimized.
Yury had approved of the idea to add source code links to the asyncio docs. /cc @1st1 |
This comment has been minimized.
This comment has been minimized.
Alright, let's merge this! Thank you, Kyle! |
This comment has been minimized.
This comment has been minimized.
miss-islington
commented
Oct 10, 2019
This comment has been minimized.
This comment has been minimized.
bedevere-bot
commented
Oct 10, 2019
GH-16711 is a backport of this pull request to the 3.8 branch. |
This comment has been minimized.
This comment has been minimized.
miss-islington
commented
Oct 10, 2019
Sorry, @aeros and @1st1, I could not cleanly backport this to |
This comment has been minimized.
This comment has been minimized.
@aeros You'll need to manually create a PR towards 3.7 (although I suggest not too, as the site will soon switch to rendering 3.8 branch) |
This comment has been minimized.
This comment has been minimized.
Oh okay, we can just skip the 3.7 backport then. I'm mostly concerned with the source links being present in the latest stable version of the docs and for 3.9. |
This comment has been minimized.
This comment has been minimized.
Also, thanks for the great feedback and discussions as usual Yury. (: |
aeros commentedOct 8, 2019
Many of the other stdlib modules link to the source code in the documentation pages. Asyncio currently does not.
This PR adds source code links to the documentation pages for asyncio. It also fixes the location of a reference point in
asyncio-eventloop.rst
(which fixes a link inasyncio.rst
), adds a Sphinx term (link to glossary) for "coroutine" inasyncio-task.rst
, and fixes a minor grammar typo.