Arc Forum
new
|
comments
|
leaders
|
submit
login
2 points
by
akkartik
4962 days ago |
link
|
parent
Ah.
And del is identical to assigning to [].
>>> foo = [0, 1, 2] >>> foo[0:1] = [] >>> foo [1, 2]
I stand corrected.