query: Python: Creating an object in a loop produces objects with the same reference
positive_passages.docid: 9599
positive_passages.text: How do lexical closures work?
negative_passages.docid: 43630
negative_passages.text: Is Object constructor called when creating an array in Java?
negative_passages.docid: 28276
negative_passages.text: Reference type variable recycling - is a new reference variable created every loop in a loop if declared therein?
negative_passages.docid: 99296
negative_passages.text: Why can't I make a vector of references?
negative_passages.docid: 96433
negative_passages.text: Why does Python's itertools.cycle need to create a copy of the iterable?
negative_passages.docid: 123395
negative_passages.text: Why does this python dictionary get created out of order using setdefault()?
negative_passages.docid: 3868
negative_passages.text: Why use the 'ref' keyword when passing an object?
negative_passages.docid: 29106
negative_passages.text: Variable appears to change size on every loop iteration - what?
negative_passages.docid: 3773
negative_passages.text: How to "properly" create a custom object in JavaScript?
negative_passages.docid: 126943
negative_passages.text: Instantiate objects in a List and use it
negative_passages.docid: 121698
negative_passages.text: replicating elements in list
negative_passages.docid: 1607
negative_passages.text: List of lists changes reflected across sublists unexpectedly
negative_passages.docid: 129503
negative_passages.text: Can't modify list elements in a loop
negative_passages.docid: 101063
negative_passages.text: List comprehension rebinds names even after scope of comprehension. Is this right?
negative_passages.docid: 36610
negative_passages.text: How to find the index of current object in range-based for loop?
negative_passages.docid: 132361
negative_passages.text: Find references to the object in runtime
negative_passages.docid: 100941
negative_passages.text: Synchronising twice on the same object?