On Wed, Nov 27, 2013 at 1:26 AM, Chris Angelico wrote:
> On Wed, Nov 27, 2013 at 12:54 AM, Jonathan Slenders
> wrote:
>> Where do I find the PEP that describes that the following statement assigns
>> a generator object to `values`?
>> values = [ (yield x) for x in range(10) ]
>>
>> I assume it's
On Wed, Nov 27, 2013 at 12:54 AM, Jonathan Slenders
wrote:
> Where do I find the PEP that describes that the following statement assigns
> a generator object to `values`?
> values = [ (yield x) for x in range(10) ]
>
> I assume it's equivalent to the following:
> values = (x for x in range(10))
>