23 May
2008
23 May
'08
2:02 a.m.
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