Using the console
# this Work perfectly
print( [ i for i in range(100) if i <10 ])
# But this is KO: if ] is next to i, 0 is ignored in if <10
print( [ i for i in range(100) if i <10])
# But this is ok
print( [ i for i in range(10)])
Results:
[0,1,2,3,4,5,6,7,8,9]
[0]
[0,1,2,3,4,5,6,7,8,9]
<done in 13 ms>
Code (for the wrong part):
$print($list_comp([["i","range(Number(100))"]],"i","i <1",['range',range]))
Original issue reported on code.google.com by jacob.ni...@gmail.com on 18 Jan 2013 at 9:13
Original issue reported on code.google.com by
jacob.ni...@gmail.com
on 18 Jan 2013 at 9:13