2.3b1 changed list.insert() so that negative indices are treated as being relative to the end of the list, but array.array.insert() still treats all negative indices as 0: >>> import array >>> a = array.array("c", "spam") >>> a.insert(-1, "x") >>> a array('c', 'xspam')
Logged In: YES user_id=31435 Well, Guido would probably shrink the docstring, by taking the information-free "a new item" out of it. That would make it closer to the list.insert() docstring, BTW. The unenforced rule is that docstrings are mnemonic, and the real docs are in the manuals. I think it says enough as-is.