[Python-ideas] Order of loops in list comprehension

Alexander Heger python at 2sn.net
Thu Oct 20 16:39:05 EDT 2016


For me the current behaviour does not seem unreasonable as it resembles the
order in which you write out loops outside a comprehension except that the
expression for generated values is provided first.

On 21 October 2016 at 05:03, Sven R. Kunze <srkunze at mail.de> wrote:

> On 19.10.2016 00:08, Rob Cliffe wrote:
>
>>
>> But it's far too late to change it now, sadly.
>>>
>> Indeed. :-(  But if I were ruler of the world and could have my own
>> wish-list for Python 4, this (as per the first example) would be on it.
>>
>
> I don't see no reason why we can't make it.
>
> Personally, I also dislike this behavior.
>
>
> Cheers,
> Sven
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20161021/6e45506a/attachment-0001.html>


More information about the Python-ideas mailing list