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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

deep equality

A

Equality of values, or two references that point to objects that have the same value.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

shallow equality

A

Equality of references, or two references that point to the same object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly