lambda in list comprehension acting funny

woooee woooee at gmail.com
Wed Jul 11 20:38:18 CEST 2012


You should not be using lambda in this case
.for x in [2, 3]:
.    funcs = [x**ctr for ctr in range( 5 )]
.    for p in range(5):
.        print x, funcs[p]
.    print



More information about the Python-list mailing list