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 Inyeol.Lee, Jim Fasarakis-Hilliard, arigo, belopolsky, benjamin.peterson, danielsh, emptysquare, erickt, esc24, georg.brandl, glyph, gvanrossum, levkivskyi, ncoghlan, rhettinger, serhiy.storchaka, yselivanov
Date 2017-11-23.16:38:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1511455086.18.0.213398074469.issue10544@psf.upfronthosting.co.za>
In-reply-to
Content
> ... but [await x for x in xs] is still valid _only_ inside async def.

Yes, because it's computed right where it is defined.

a = [x for x in xs]  # `a` is a list object
a = (x for x in xs)  # `a` is a generator

Do you understand the difference?
History
Date User Action Args
2017-11-23 16:38:06yselivanovsetrecipients: + yselivanov, gvanrossum, arigo, georg.brandl, rhettinger, ncoghlan, belopolsky, benjamin.peterson, erickt, glyph, Inyeol.Lee, serhiy.storchaka, esc24, danielsh, emptysquare, levkivskyi, Jim Fasarakis-Hilliard
2017-11-23 16:38:06yselivanovsetmessageid: <1511455086.18.0.213398074469.issue10544@psf.upfronthosting.co.za>
2017-11-23 16:38:06yselivanovlinkissue10544 messages
2017-11-23 16:38:06yselivanovcreate