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 gvanrossum, ncoghlan, yselivanov
Date 2015-07-23.15:10:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1437664215.74.0.89761121939.issue24697@psf.upfronthosting.co.za>
In-reply-to
Content
Since native coroutines (see PEP 492) hadn't had a separate type when the PEP was accepted, we didn't discuss that it might be necessary to introduce new exception types specifically for coroutines.

To maintain backwards compatibility with 3.5, I think we can do the following:

1. Add CoroutineReturn exception type, inherited from StopIteration;

2. Add CoroutineExit exception type, inherited from GeneratorExit.
History
Date User Action Args
2015-07-23 15:10:15yselivanovsetrecipients: + yselivanov, gvanrossum, ncoghlan
2015-07-23 15:10:15yselivanovsetmessageid: <1437664215.74.0.89761121939.issue24697@psf.upfronthosting.co.za>
2015-07-23 15:10:15yselivanovlinkissue24697 messages
2015-07-23 15:10:15yselivanovcreate