wat
Conversation
Replying to
or really just… the first [] looks like a value but it’s a reference
1
Replying to
yeah, I wonder why the interpreter doesn't shallow copy arrays / dicts when parsing " * 5" tho
1
hard to imagine a case where user actually wants this behavior
2
1
it's python. The problem is the array creation not the insert. Write "a = [[] for i in range(0, 5)]" to get correct behavior
1


