Re:Python for Non-Programmers
by rovolo on Friday April 03, 2020 @03:24PM
(#22773088)
There shouldn't be a difference between Aliasing and cloning for immutable data because you can't change the data.
Deep vs shallow operations is an issue in both imperative and functional programming. In python, you have '==' vs 'is' for different types of equal. You have deep vs shallow copy: https://docs.python.org/3/library/copy.html
Deep vs shallow operations is an issue in both imperative and functional programming. In python, you have '==' vs 'is' for different types of equal. You have deep vs shallow copy: https://docs.python.org/3/library/copy.html