Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve deepcopy documentation to clarify reference behavior (#51569)
The original text here: > For example, deep-copying an array produces a new array whose elements are deep copies of the original elements reads to me that its implementation would do something like `deepcopy(array) = [deepcopy(element) for element in array]`. That's the wrong mental model — we preserve relationships. This is tricky to talk about, but I think this gets at the crux of it.
- Loading branch information