it's immutable. why would you need a copy? Reference is good enough.
there is no e.g.
Note that with
there is no e.g.
str.copy
either :-)Note that with
[:]
it's the same object (same id), not a copyPython 3.9.4 (default, Apr 9 2021, 01:15:05) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information. >>> spam = (1, 2, 3) >>> eggs = spam[:] >>> id(spam) 139751983214912 >>> id(eggs) 139751983214912 >>>
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs