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 ncoghlan
Recipients gvanrossum, ncoghlan, scoder, yselivanov
Date 2015-07-24.08:35:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CADiSq7cayLV2FEX5=ybuc1wK64OSLTdqtmo2cZ53Tz9svYce6A@mail.gmail.com>
In-reply-to <1437683246.93.0.438502224429.issue24697@psf.upfronthosting.co.za>
Content
My initial inclination is to agree with Stefan. At the moment, we have a
slightly leaky abstraction where the exceptions used mean that coroutines
still expose the fact that under the covers they're defined in terms of
generator semantics.

However, that leak in the abstraction reveals an underlying truth -
coroutine semantics *are* derived from generator semantics, and they *do*
share common underlying infrastructure.

We may eventually find pragmatic reasons for wanting to plug that leak and
use separately named exceptions, but unlike the situation with coroutines
themselves, I'm not currently seeing a clear gain in either usability or
comprehensibility as a payoff for the extra complexity.
History
Date User Action Args
2015-07-24 08:35:13ncoghlansetrecipients: + ncoghlan, gvanrossum, scoder, yselivanov
2015-07-24 08:35:13ncoghlanlinkissue24697 messages
2015-07-24 08:35:12ncoghlancreate