[Python-ideas] Proposal to add new built-in struct (was: Add kwargs to built-in function object)
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri May 23 04:02:10 CEST 2008
Leif Walsh wrote:
> I've only used __slots__ once, and it
> was at the suggest of another programmer in a kind of "I think this
> does what we want" suggestion, and we are still not entirely sure if
> it's doing what we think it's doing.
Another thing to keep in mind about __slots__ is that
its primary purpose is to save memory. It currently
has the side effect of preventing other attributes
from being added, but it may not remain that way
forever.
--
Greg
More information about the Python-ideas
mailing list