I want to attach a list to itself and I thought this would work:
x = [1,2] y = x.extend(x) print y
I wanted to get back [1,2,1,2]
[1,2,1,2]
x.extend(x) will extend x inplace.
>>> print x [1, 2, 1, 2]