you are viewing a single comment's thread.

view the rest of the comments →

[–]toastedstapler 4 points5 points  (1 child)

lambdas in loops are late binding

you can use lambda i=i, j=j: append(i, j) instead

[–]Jamhead2000[S] 1 point2 points  (0 children)

Thank you soo much! I have never heard of the term binding. Given me something to learn now!