Oct. 31, 2012
9:31 p.m.
On 2012-10-31, at 5:18 PM, Guido van Rossum <guido@python.org> wrote:
@async def trivial(x): return x yield # Unreachable, but makes it a generator
FWIW, just a crazy comment: if we make @async decorator to clone the code object of a passed function and set its (co_flags | 0x0020), then any passed function becomes a generator, even if it doesn't have yields/yield-froms ;) - Yury