You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
dmaniry
changed the title
Basic Introduction Question 1: shallow vs deep copy
Basic Introduction Question 1: bad example of shallow vs deep copy
Jan 9, 2019
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 thoughcopy
(which was introduced before) would have the same effect. The example should be reworked to actually requiredeepcopy
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 reinitializea
to see the fix working.The text was updated successfully, but these errors were encountered: