Re: [Python-Dev] The `for y in [x]` idiom in comprehensions

2018年2月22日 12:05:06 -0800

On 02/22/2018 11:54 AM, Joao S. O. Bueno wrote:
> On 22 February 2018 at 16:04, Serhiy Storchaka wrote:
>> Stephan Houben proposed an idiom which looks similar to new hypothetic
>> syntax:
>>
>> result = [y + g(y) for x in range(10) for y in [f(x)]]
>
> This thing has bitten me in the past -
Do you recall how? That would be useful information.
--
~Ethan~
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to