3 ms·
It's not quite a copy in the latter case. The assignment operator in Python binds names to objects, so it's more of a relabeling.
by Majromax 5y ago
It's not quite a copy in the latter case. The assignment operator in Python binds names to objects, so it's more of a relabeling.
- omegalulw 5y agoThis is misleading. It would indeed be a re label but the original list a would be garbage collected - that can be costly if a was big.