[Python-Dev] A new dict for Xmas?
mark at hotpy.org
Fri Dec 16 22:42:11 CET 2011
Terry Reedy wrote:
> On 12/16/2011 5:03 AM, Mark Shannon wrote:
>> Of course using __slots__ saves more memory,
>> but people don't use them much.
> Do you think the stdlib should be using __slots__ more?
For some things yes, but where it's critical slots are already used.
Take the ordered dict, the nodes in that use slots.
The advantage of improving things in the VM is that
we don't have to rewrite half of the stdlib.
More information about the Python-Dev