May 23, 2008
1:59 a.m.
On Thu, May 22, 2008 at 7:15 PM, Leif Walsh <adlaiff6@gmail.com> wrote:
I think it makes the most sense, if this construct is adopted, to use __slots__ to control mutability.
That wouldn't work, because the slots that a class has are fixed when the class is defined. Changing __slots__ subsequent to that doesn't affect anything. -- Greg