Klocwork Documentation | 2025.4
PY3.W4701
Modified iterating list
Emitted when items are added or removed to a list being iterated through. Doing so can result in unexpected behaviour,
that is why it is preferred to use a copy of the list.
Noncompliant Code:
Compliant Code: