CIDARLAB/pyparchmint

(PTC-W0060) Implicit enumerate calls found

Closed this issue · 0 comments

Description

Using range(len(...)) is not pythonic. Python does not have not index-based loops. Instead, it uses collection iterators. Python has a built-in method enumerate which adds a counter to an iterable. Using this, you can access the counter and the value from the iterable at the same time. It is therefore …

Occurrences

There are 5 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/CIDARLAB/pyparchmint/issue/PTC-W0060/occurrences/