Diez B. Roggisch wrote: >>>> l = [1,2,3] >>>> l.insert(2, 10) >>>> l > [1, 2, 10, 3] > > Embarrasing enough?
Actually, I was trying to figure it out with the slice technique instead. But yeah, as Christopher's example showed, it's not hard. But I didn't realize you had to assign a list item to the slice, so I was doing: L[2:2] = 3 among other things, but they all involved '= 3', not '= [3]' -- http://mail.python.org/mailman/listinfo/python-list