3 ms·
There's nothing stopping you from writing Python types that separate these different senses of "dynamic". You can write a sequence type that doesn't let you cha
by pdonis 10y ago
There's nothing stopping you from writing Python types that separate these different senses of "dynamic". You can write a sequence type that doesn't let you change the number of cells, but does let you mutate existing cells. Or you can write one that lets you add new cells, but doesn't let you mutate cells once they are added. You can even write them as C extensions if you want the same speed and memory efficiency as the built-in types.