3 ms·
The first workaround is actually the same as what you do for a map in 2.x (that always works): for x in map(lambda i: lambda: i, range(5)): print(x
by emidln 13y ago
The first workaround is actually the same as what you do for a map in 2.x (that always works):
for x in map(lambda i: lambda: i, range(5)):
print(x())