Python is not C. When you are trying to assign to an index of a list you can't think of it like having a pointer to the actual location in memory where this data is; that just isn't relevant in python.
It is my understanding that yes, essentially strings and lists are both, at their bare bones, implemented as C arrays; lists having tons of logic for resizing and other such stuff. But this is neither here nor there in terms of python programming. Lists are mutable, byte strings are not. That is just how python is designed.
It is my understanding that yes, essentially strings and lists are both, at their bare bones, implemented as C arrays; lists having tons of logic for resizing and other such stuff. But this is neither here nor there in terms of python programming. Lists are mutable, byte strings are not. That is just how python is designed.