3 ms·
> Does this really count as mutability though? No. The strings having the same address doesn't mean they're the same strings. This is an interesting optimiza
by helsinkiandrew 6y ago
> Does this really count as mutability though?
No. The strings having the same address doesn't mean they're the same strings. This is an interesting optimization but one Python string is being replaced by another string at the same address. Even without this optimization the address will be reused eventually.