I occasionally run across something like:

for idx, thing in enumerate(things):
    if idx == 103: 
        continue
    do_something_with(thing)

It seems more succinct and cleaner to use:

if idx == 103: continue.

Of course this would be considered an anti-pattern, and Flake8 will complain.

Any opinions, or feedback on the matter.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to