yield obj

def test1():
    return ','.join(a + [b])

def test2():
    return ','.join(combine(a, b))

def test3():
    return ','.join(chain(a, repeat(b, 1)))

def test4():
    return ','.join(chain(a, [b]))
Generator expression that resembles the behavior of append