Author eric.smith
Recipients eric.smith, iqanansoft
Date 2021-02-02.08:19:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1612253950.2.0.937369138289.issue43099@roundup.psfhosted.org>
In-reply-to
Content
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]
History
Date User Action Args
2021-02-02 08:19:10eric.smithsetrecipients: + eric.smith, iqanansoft
2021-02-02 08:19:10eric.smithsetmessageid: <1612253950.2.0.937369138289.issue43099@roundup.psfhosted.org>
2021-02-02 08:19:10eric.smithlinkissue43099 messages
2021-02-02 08:19:10eric.smithcreate