News for hackers. Stuff that matters.
Re:Why Do Python Lists Multiply Oddly? Exploring the CPython... by arijun on Tuesday April 09, 2024 @03:25AM (#39976944)
Languages with immutable data structures are relatively rare. With its high level focus python could have been one of them, but went for different trade offs.

> In more sane languages, the expression [] means give me an empty list value, nothing more and nothing less

What is an “empty list value”?

Re:Why Do Python Lists Multiply Oddly? Exploring the CPython... by dragonwriter on Tuesday April 09, 2024 @03:43AM (#39977029)
Python has immutable data structures, lists just aren't one of them. (Tuples are. So are, unlike in some languages, strings.)