On 2015-05-05 17:57, Ludovic Gasc wrote:
Thank you for your email!
I've been following quite a bit of the PEP492 discussions, but not
sure if I have missed something. If there is something about await
outside async def that goes further than "It is a SyntaxError to use
await outside of an async def function (like it is a SyntaxError to
use yield outside of def function.)", which is directly from the
PEP, I've missed that. A link or pointer would be helpful.
In any case, I think I understand the problem you are referring to,
but is that any different from forgetting a postfix "_s" in the
approach you mention below?
Surely that is possible, although may of course be hard to implement
:). I think this is related to this earlier suggestion by Joshua
Bartlett (which I do like):
However, I don't think it solves *this* problem. It would just
become a more verbose version of what I suggested.
In my mind, this is not at all about explicit vs. implicit. It is
mostly about letting the coroutines know what kind of context they
are being run from. Anyway, I'm pretty sure there are plenty of
people in the Python community who don't think efficiency is enough,
but that is a matter of personal preference. I want everything, and
that's why I'm using Python ;).