iteration-over-set (PLC0208)#
Derived from the Pylint linter.
Fix is always available.
What it does#
Checks for iterations over set
literals.
Why is this bad?#
Iterating over a set
is less efficient than iterating over a sequence
type, like list
or tuple
.
Example#
Use instead: