The future of "frozen" types as the number of CPU cores increases
Paul Rubin
no.email at nospam.invalid
Wed Feb 17 00:52:04 EST 2010
John Nagle <nagle at animats.com> writes:
>> However, things have changed, and lists and tuple *are* effectively
>> mutable and hashable versions of each other...
> It's the concurrency aspect of this that interests me, though.
> A language with immutable objects can potentially handle concurrency
> more safely than one where everything is potentially mutable.
> The language knows what can't change, which simplifies locking.
I wonder how well that applies to tuples containing mutable objects,
e.g. t = ([1,2], [3,4])
More information about the Python-list
mailing list