[Python-ideas] [Fwd: Re: Support other dict types for type.__dict__]

Ethan Furman ethan at stoneleaf.us
Mon Feb 27 20:02:27 CET 2012

[forwarding on to list]

On 27/02/2012 18:46, Ethan Furman wrote:
>> I suggested a "mutable" attribute some time ago.
>> This could lead to finally doing away with one of Python's FAQs: Why 
>> does python have lists AND tuples?  They could be unified into a 
>> single type.
> If a tuple is just an immutable list it will become worse with regards 
> to performance and memory space.
> ~Ethan~
Doesn't that depend on how smart the implementation is?
(Of course, toggling the mutable flag could cause performance penalties,
but that's something you can't do at all at the moment.)

More information about the Python-ideas mailing list