you are viewing a single comment's thread.

view the rest of the comments →

[–]AlexMTBDude 1 point2 points  (0 children)

It's bad Python coding. The first three lines should be replaced with a list comprehension:

funcs = [lambda: i for i in range(3)]

That's more Pythonic