On Thu, May 31, 2018 at 3:59 AM, Neil Girdhar <mistersh...@gmail.com> wrote:
> This example shows additional flexibility:
>
> z = {a: transformed_b
>      for b in bs
>      given transformed_b = transform(b)
>      for a in as_}
>
> There is no nice, equivalent := version as far as I can tell.

True. However, it took me several readings to understand what you were
doing here. I think I actually prefer "for transformed_b in
[transform(b)]" to this syntax, which is saying something.

ChrisA
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to