tests/listcomp_nested.py | raw changeset files shortlog | syspython-as-target |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tests/listcomp_nested.py Sun Jun 30 22:46:32 2013 +0200 1.3 @@ -0,0 +1,9 @@ 1.4 +#!/usr/bin/env python 1.5 + 1.6 +l = [(x, y) for x in range(0, 6) if x % 2 == 0 for y in range(0, 6) if y % 3 == 0] 1.7 + 1.8 +result2 = l[3][0] 1.9 +result3 = l[3][1] 1.10 +result5 = l[3][0] + l[3][1] 1.11 + 1.12 +# vim: tabstop=4 expandtab shiftwidth=4