Ezio Melotti added the comment: The docs say that: l.insert(pos, val) is equivalent to: l[pos:pos] = [val] The docstring also says that the value is inserted before pos, so .insert is working as documented.
---------- nosy: +ezio.melotti _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18770> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com