3 ms·
This seems more like "defensive copying" than "interior mutability" to me. Ideally you'd have a compiler that could perform optimizing magic to detect when the
by roywiggins 7y ago
This seems more like "defensive copying" than "interior mutability" to me.
Ideally you'd have a compiler that could perform optimizing magic to detect when the copy isn't needed, but that's not going to happen in CPython.