>> Sure - but those things don't get modified that often, except for their >> reference count. > > The reference count is the killer, though -- you have > to lock the object even to do that. And it happens > a LOT, to all objects, including immutable ones.
Now we are getting into details: you do NOT have to lock an object to modify its reference count. An atomic increment/decrement operation is enough. Regards, Martin _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com