[Python-Dev] Tricky way of of creating a generator via a comprehension expression (original) (raw)

Ivan Levkivskyi levkivskyi at gmail.com
Wed Nov 22 14:12:29 EST 2017


On 22 November 2017 at 20:05, Guido van Rossum <guido at python.org> wrote:

On Wed, Nov 22, 2017 at 10:54 AM, Jelle Zijlstra <jelle.zijlstra at gmail.com_ _> wrote

2017-11-22 9:58 GMT-08:00 Guido van Rossum <guido at python.org>: (OTOH, await in the same position must keep working since it's not broken and not unintuitive either.)

This is very questionable IMO. So do you think that [await x for y in z] and list(await x for y in z) being not equivalent is intuitive?

-- Ivan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20171122/54416038/attachment.html>



More information about the Python-Dev mailing list