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 asvetlov, gvanrossum, ncoghlan, scoder, vstinner, yselivanov
Date 2015-05-11.01:32:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1431307982.56.0.0737430586349.issue24017@psf.upfronthosting.co.za>
In-reply-to
Content
New patch is attached.

Nick, I think that all of your feedback should be addressed in this patch.

Major changes:

1. There are two code flags now: CO_COROUTINE and CO_GENBASED_COROUTINE (I'm OK to use another name, see my older comments).  CO_COROUTINE is assigned to all 'async def' code objects.  CO_GENBASED_COROUTINE is assigned to generator-based coroutines decorated with types.coroutine().

2. tp_await renamed to tp_as_async. (I'm OK to use another name, please see my older comment first) PyAsyncMethods struct holds three slots: am_await, am_aiter, am_anext.  Implementing am_exit would be tricky, because of how SETUP_WITH opcode is engineered.  I'd really prefer to not to add it.

3. collections.abc.Coroutine.

4. etc (all other feedback from you).
History
Date User Action Args
2015-05-11 01:33:02yselivanovsetrecipients: + yselivanov, gvanrossum, ncoghlan, scoder, vstinner, asvetlov
2015-05-11 01:33:02yselivanovsetmessageid: <1431307982.56.0.0737430586349.issue24017@psf.upfronthosting.co.za>
2015-05-11 01:33:02yselivanovlinkissue24017 messages
2015-05-11 01:33:02yselivanovcreate