[Python-ideas] Wild idea about mutability
Random832
random832 at fastmail.com
Wed Jun 1 19:29:28 EDT 2016
On Wed, Jun 1, 2016, at 18:26, Rob Cliffe wrote:
> And (fasten your safety belts): You don't need tuples. You just have a
> list with __mutable__ = False. And you don't have to explain to
> beginners one of the most FAQ "Why do we need lists and tuples?"
Er... so does setting __mutable__ = False cause/require contained
objects to be transitively mutable? Because if it does, you still need
tuples to have an "immutable list of mutable objects". If it doesn't,
then this doesn't solve the other thread's problem.
More information about the Python-ideas
mailing list