summaryrefslogtreecommitdiff
path: root/tests/run/genexpr_T715.pyx
blob: 2c6f5d6c870cd1591c6f6f57abd68f1fcb75c752 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# mode: run
# ticket: 715
# tag: genexpr, comprehension

def t715(*items):
    """
    # Blocked by T724
    # >>> [list(i) for i in t715([1, 2, 3], [4, 5, 6])]
    # [[1, 2, 3], [4, 5, 6]]
    >>> [list(i) for i in t715([1, 2, 3])]
    [[1, 2, 3]]
    """
    return [(j for j in i) for i in items]