[ create a new paste ] login | about

Link: http://codepad.org/T2u0TxGq    [ raw code | output | fork ]

Python, pasted on Aug 5:
1
2
3
4
5
6
7
def f(a):
    yield len(a)
    yield len(a)

for i in f([3]):
    print i
    len = lambda o: 3


Output:
1
2
1
3


Create a new paste based on this one


Comments: