News for hackers. Stuff that matters.
Re:Python Lists vs. Tuples by xapata on Friday August 19, 2016 @11:47PM (#12325087)
> Why Python chose lists (and only lists!) to have both immutable and mutable flavors, with otherwise identical semantics, is beyond me.

It didn't. There's frozenset as well. There's been discussion of an immutable dict every so often, but the conclusion is generally that it's unnecessary.

The reason to have an immutable sequence is mostly to serve as dict keys. Same with an immutable set. If you use a mutable sequence as a dict key, you create ambiguity over whether you care about the memory location or the value of the sequence.

Re:Python Lists vs. Tuples by jholman on Saturday August 20, 2016 @12:28AM (#12325209)
Re:Python Lists vs. Tuples by colanderman on Friday August 19, 2016 @11:58PM (#12325126)
I didn't know about frozenset, thank you!