[issue18770] Python insert operation on list
Ezio Melotti
report at bugs.python.org
Sat Aug 17 20:07:50 CEST 2013
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 <report at bugs.python.org>
<http://bugs.python.org/issue18770>
_______________________________________
More information about the Python-bugs-list
mailing list