View Single Post
Old May 8th, 2006, 11:36 PM   #9
Dietrich
Professional Programmer
 
Dietrich's Avatar
 
Join Date: Feb 2005
Posts: 434
Rep Power: 4 Dietrich is on a distinguished road
Smile

Actually I found it in one of the Python Reference Manuals:
Quote:
s.insert(i, x) same as s[i:i] = [x] if i >= 0
also i == -1 inserts before the last element
Didn't give it much attention until hydroxide mentioned it.
__________________
I looked it up on the Intergnats!
Dietrich is offline   Reply With Quote