[New-bugs-announce] [issue41774] While removing element from list using for and remove(), which has same items output is not right

Sreedevi report at bugs.python.org
Sat Sep 12 12:20:35 EDT 2020


New submission from Sreedevi <sreedevi.ha at gmail.com>:

Define a list which has all same elements.
While removing the same element from list using for loop and by using remove() method, output should be empty list, but the output we get is one element is unremoved

----------
assignee: terry.reedy
components: IDLE, Windows
files: listrepxxx.py
messages: 376803
nosy: paul.moore, sreedevi.ha, steve.dower, terry.reedy, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: While removing element from list using for and remove(), which has same items output is not right
type: behavior
versions: Python 3.8
Added file: https://bugs.python.org/file49454/listrepxxx.py

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41774>
_______________________________________


More information about the New-bugs-announce mailing list