4 ms·
Mutable tuples look like a really weird design choice. The most important reason I used tuples in python is the immutable semantic they have - this won't change
by lukasm 10y ago
Mutable tuples look like a really weird design choice. The most important reason I used tuples in python is the immutable semantic they have - this won't change.
- Locke1689 10y agoTuples are value types, so every new reference to a tuple is a copy. This avoids a lot of the situations you would normally get.