[New-bugs-announce] [issue43099] Deleted positions lists
iqanansoft
report at bugs.python.org
Tue Feb 2 03:06:03 EST 2021
New submission from iqanansoft <iqanansoft at gmail.com>:
Hello, in a list, when using the slice notation, if a higher rank is placed than the new data, the positions of the list are removed
list_test=[0,1,2,3,4,5,6]
list_test[2:4]=["two","three"]
result-->[0,1,'two','three',4,5,6]
this is correct, but this
list_test=[0,1,2,3,4,5,6]
list_test[2:21]=["two","three"]
result-->[0,1,'two','three']
deleted last positions
----------
messages: 386130
nosy: iqanansoft
priority: normal
severity: normal
status: open
title: Deleted positions lists
type: behavior
versions: Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43099>
_______________________________________
More information about the New-bugs-announce
mailing list