[Chicago] Nested List Comprehension in PyDev

Oren Livne livne at uchicago.edu
Mon Oct 15 22:50:46 CEST 2012


Nothing, it works. :) Thanks B!
PyDev is also OK with : [(k, x) for (k, v) in d.iteritems() for x in v] 
, which is really what I wanted.

On 10/15/2012 03:29 PM, Brian Ray wrote:
> Are you sure they are using the same python version.
>
> What is wrong with: [(k, x) for x in [d[k] for k in d]]
>



More information about the Chicago mailing list