On Wed, May 30, 2018 at 7:59 PM, Neil Girdhar <mistersh...@gmail.com> wrote:
>
> 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.
>

Well you could just do:

    z = {a: b
         for b in (transform(bi) for bi in bs)
         for a in as_}
_______________________________________________
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