Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

General Outline for New Tutorials #1

Open
appeltel opened this issue Jun 4, 2017 · 3 comments
Open

General Outline for New Tutorials #1

appeltel opened this issue Jun 4, 2017 · 3 comments

Comments

@appeltel
Copy link

appeltel commented Jun 4, 2017

From bpo-30145 @1st1 has proposed the following general structure for the revised asyncio tutorials and documentation:

  1. Tutorial
    a/ Why async IO?
    b/ async/await in Python
    c/ Simple example in asyncio (Tasks + sleep) + explanation
    d/ An example of using aiohttp
    e/ How asyncio works and what is the event loop
    f/ Tasks, asyncio.gather, wait_for, cancellation

  2. Advanced Tutorial
    a/ A short primer on network IO
    b/ Let’s implement a memcache/redis driver using streams!
    c/ Let’s implement a memcache/redis driver with transports!

  3. API reference — there are a few things we’ll need to restructure
    there.

The proposed structure for the tutorials makes sense to me, and looking at the structure of the python reference I think they might fit best as new tutorials in the HOWTO section.

@1st1
Copy link

1st1 commented Jun 4, 2017

The proposed structure for the tutorials makes sense to me, and looking at the structure of the python reference I think they might fit best as new tutorials in the HOWTO section.

I'm not sure I like the idea of moving tutorials to HOWTO. Part of me wants the user to just open asyncio docs and see everything grouped logically -- both tutorials and the API reference. Otherwise, I worry, that a lot of people will simply miss the tutorials.

@appeltel
Copy link
Author

appeltel commented Jun 5, 2017

@1st1 - Makes sense - I'll go ahead and close #2 and then open a new PR with the tutorials as new subsections of the asyncio language reference. I was guided by the logging reference docs as a precedent where there is a box at the top pointing people to the tutorial, but just having the tutorial as the first section would be harder to miss, and I don't think it would make the other reference material harder to find.

@1st1
Copy link

1st1 commented Jun 5, 2017

@1st1 - Makes sense - I'll go ahead and close #2 and then open a new PR with the tutorials as new subsections of the asyncio language reference. I was guided by the logging reference docs as a precedent

Yeah, let's do it first in asyncio docs. If anything, when we finish our work here and create a PR to CPython, then if many people object we'll simply move the tutorial to HOWTO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants