Message386131
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] |
|
Date |
User |
Action |
Args |
2021-02-02 08:19:10 | eric.smith | set | recipients:
+ eric.smith, iqanansoft |
2021-02-02 08:19:10 | eric.smith | set | messageid: <1612253950.2.0.937369138289.issue43099@roundup.psfhosted.org> |
2021-02-02 08:19:10 | eric.smith | link | issue43099 messages |
2021-02-02 08:19:10 | eric.smith | create | |
|