Chapter 16 Flashcards
1
Q
deep copy
A
To copy the contents of an object as well as any embedded objects, and any objects embedded in them, and so on; implemented by the deepcopy function in the copy module.
2
Q
shallow copy
A
To copy the contents of an object, including any references to embedded objects; implemented by the copy function in the copy module.
3
Q
deep equality
A
Equality of values, or two references that point to objects that have the same value.
4
Q
shallow equality
A
Equality of references, or two references that point to the same object.