Eric V. Smith <e...@trueblade.com> added the comment:

That's the correct behavior. The elements given by the start and end range are 
replaced by what's on the right hand side of the assignment. They don't need to 
be the same length.

>>> list_test=[0,1,2,3,4,5,6]
>>> list_test[2:5] = ['two', 'three']
>>> list_test
[0, 1, 'two', 'three', 5, 6]

----------
nosy: +eric.smith
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue43099>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to