List comprehension in if clause of another list comprehension

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Fri Dec 19 08:35:22 EST 2008


On Fri, 19 Dec 2008 04:26:16 -0800, bearophileHUGS wrote:

> Peter Otten:
>> The problem is that list comprehensions do not introduce a new
>> namespace.
> 
> I think Python3 fixes this bug.

Or removes that feature.  ;-)



More information about the Python-list mailing list