Skip to content

Basic Introduction Question 1: bad example of shallow vs deep copy #42

@dmaniry

Description

@dmaniry

Question 1 threw me off when it introduced the concept of shallow vs deep copy, because the example would actually work with a shallow copy. It doesn't work with a plain assignment and then introduces deepcopy as a fix even though copy (which was introduced before) would have the same effect. The example should be reworked to actually require deepcopy or make a clearer distinction of the three options. Also there is a minor issue with the cell execution order being confusing, because you have to go 2 cells back to reinitialize a to see the fix working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions