query: When creating lists, it seems that forms like [[False] * 3] * 3 only copies the references?
positive_passages.docid: 1607
positive_passages.text: List of lists changes reflected across sublists unexpectedly
negative_passages.docid: 16135
negative_passages.text: How could I retrieve the exact duplicate value from conditionally formatted list that highlight duplicates?
negative_passages.docid: 142576
negative_passages.text: Why does [1].append(2) evaluate to None instead of [1,2]?
negative_passages.docid: 58400
negative_passages.text: What's the purpose of dummy addition in this "number of elements" macro?
negative_passages.docid: 79747
negative_passages.text: Why are arrays of references illegal?
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: 32761
negative_passages.text: What is the best way to copy a list?
negative_passages.docid: 67299
negative_passages.text: "Instantiating" a List in Java?
negative_passages.docid: 48209
negative_passages.text: python list by value not by reference
negative_passages.docid: 101674
negative_passages.text: Different behaviour for list.__iadd__ and list.__add__
negative_passages.docid: 91943
negative_passages.text: What is the use of "ref" for reference-type variables in C#?
negative_passages.docid: 72345
negative_passages.text: Enumerated list with square brackets
negative_passages.docid: 6233
negative_passages.text: Why does list(my_list) modify the object?
negative_passages.docid: 129375
negative_passages.text: Why is list initialization (using curly braces) better than the alternatives?
negative_passages.docid: 114824
negative_passages.text: Why doesn't 2.__add__(3) work in Python?
negative_passages.docid: 28320
negative_passages.text: Why does the standard differentiate between direct-list-initialization and copy-list-initialization?
negative_passages.docid: 38747
negative_passages.text: Unexpected list behavior in Python