-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
newThis issue hasn't been looked at yetThis issue hasn't been looked at yetsmellA new smell to report and fixA new smell to report and fix
Description
New smell
Smelly code
li = list()
for x in other_iterable:
# Body
li += exprFixed code
def generate_li():
# Body
yield expr
li = list(generate_li())Why is it smelly?
Not as smelly:tm: as other things, but in some cases it makes more sense, and more people should be aware of the possibility.
Metadata
Metadata
Assignees
Labels
newThis issue hasn't been looked at yetThis issue hasn't been looked at yetsmellA new smell to report and fixA new smell to report and fix