3 ms·
Python lists may well be implemented as arrays. I don't know if they are or not, as I haven't read the Python interpreter source code. If they are, then the ar
by umanwizard 8y ago
Python lists may well be implemented as arrays. I don't know if they are or not, as I haven't read the Python interpreter source code.
If they are, then the article is even worse, as the disclaimer that Python doesn't have arrays is a lie!
- cferr 8y agoEverything in Python is implemented as a dict behind the scenes, which is implemented in C with a few different types. Python does have arrays in the standard library's array module, so yes saying python doesn't have arrays would be a lie.