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.

Author yselivanov
Recipients Jeremy Bustamante, berker.peksag, docs@python, gvanrossum, yselivanov
Date 2017-02-01.21:46:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1485985617.34.0.102213112583.issue29344@psf.upfronthosting.co.za>
In-reply-to
Content
> Maybe we should switch all these to "awaitable"?

I like this!  Would it be OK to add a new sphinx declaration?  So that:

   .. coroutinemethod:: AbstractEventLoop.shutdown_asyncgens()

would become:

   .. awaitable:: AbstractEventLoop.shutdown_asyncgens()
   
?

> Also note that in proactor_events.py, sock_connect() is *not* a coroutine. 

Yeah, those small incompatibilities are inevitable for asyncio programs/frameworks -- something that returns a Future may occasionally become a coroutine.  Your idea to document API methods as "awaitables" seems to be the right way to go.

> In fact I'm not sure what it is -- it calls self._proactor.connect() which appears to return None from the code in windows_events.py. That's presumably a separate bug.

It looks like it returns the result of "IocpProactor.connect()" call, which returns an _OverlappedFuture instance (I don't really know Windows part of asyncio code, so I might be missing something).
History
Date User Action Args
2017-02-01 21:46:57yselivanovsetrecipients: + yselivanov, gvanrossum, docs@python, berker.peksag, Jeremy Bustamante
2017-02-01 21:46:57yselivanovsetmessageid: <1485985617.34.0.102213112583.issue29344@psf.upfronthosting.co.za>
2017-02-01 21:46:57yselivanovlinkissue29344 messages
2017-02-01 21:46:57yselivanovcreate