Re:Reasons Python Sucks
by TheCoelacanth on Tuesday December 18, 2018 @12:07PM
(#18708214)
Not true for Java or C#. In both of those languages, arrays are fixed-size and don't have anything like a push or pop operation. Both have an automatically resizing container backed by an array that is referred to as a list. Python's use of "list" matches the use in Java and C# perfectly.
[ Parent
| on HN ]
Requiring a type definition, Python's Array type more closely matches Java and C# Lists than Python's List type.
In Python, Arrays are sequence types and behave very much like lists[1] In other words, even in Python, arrays have similar semantics to Javascript Arrays not Java Arrays.