query: Why does foo.append(bar) affect all elements in a list of lists?
positive_passages.docid: 1607
positive_passages.text: List of lists changes reflected across sublists unexpectedly
negative_passages.docid: 134969
negative_passages.text: Python list multiplication: [[...]]*3 makes 3 lists which mirror each other when modified
negative_passages.docid: 116185
negative_passages.text: Why there are line breaks when PutAppend a string to file?
negative_passages.docid: 97657
negative_passages.text: why can't I change only a single element in a nested list in Python
negative_passages.docid: 67086
negative_passages.text: Python: Appending items to lists by iterating through list of lists
negative_passages.docid: 9108
negative_passages.text: How to remove items from a list while iterating?
negative_passages.docid: 124370
negative_passages.text: Inconsistent/incorrect breaks/newlines in lists
negative_passages.docid: 4760
negative_passages.text: Modifying list while iterating
negative_passages.docid: 105364
negative_passages.text: Appending an item to a python list in the declaration statement list = [].append(val) is a NoneType
negative_passages.docid: 128718
negative_passages.text: Converting a list to a set changes element order
negative_passages.docid: 145120
negative_passages.text: What is the performance of the Last() extension method for List?
negative_passages.docid: 55589
negative_passages.text: How to remove elements from a generic list while iterating over it?
negative_passages.docid: 8901
negative_passages.text: Appending the same string to a list of strings in Python
negative_passages.docid: 16087
negative_passages.text: Why is it string.join(list) instead of list.join(string)?
negative_passages.docid: 29106
negative_passages.text: Variable appears to change size on every loop iteration - what?
negative_passages.docid: 1735
negative_passages.text: Directly modifying List elements
negative_passages.docid: 129375
negative_passages.text: Why is list initialization (using curly braces) better than the alternatives?