I'm reading a book about the structure of Python. In Python, when you copy a list by using the syntax:
new_list = list(a_list)
This causes a new list to be created and this is known as shallow copy. However, Python's lists are referential, and the new list represents a sequence of references to the same elements as in the first.
Then the author wrote a sentence:
With immutable elements, this point is moot.
I looked up dictionaries and found some explanations:
- If something is a moot point or question, people cannot agree about it.
- A "moot" point is debatable and open for discussion but may not come to any satisfactory conclusion or whose conclusion may be meaningless.
But I don't think these explanations are proper. I think the meaning of moot here is that the effect of shallow copy can be acceptable because if you modify or change the new_list resulted from shallow copy, it won't affect the original list.
Am I right, or there is other correct explanation?