We're back after a server migration that caused effbot.org to fall over a bit harder than expected. Expect some glitches.


s.insert(i, x) same as s[i:i] = [x] (5)

When a negative index is passed as the first parameter to the list.insert method, the list length is added, as for slice indices. If it is still negative, it is truncated to zero, as for slice indices.

Changed in version 2.3: Previously, all negative indices were truncated to zero.