Closed Tadaboody closed 5 years ago
for x in iterable: # No body if pred(x): continue # Body
import itertools for x in itertools.dropwhile(pred,iterable): # Body
Old for had iteration logic in the body, where business logic should be
The behavior isn't actually the same. An if-continue is more along the lines of filterfalse
New smell
Smelly code
Fixed code
Why is it smelly?
Old for had iteration logic in the body, where business logic should be