[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 03:59:36 CEST 2008


On Thu, May 22, 2008 at 7:15 PM, Leif Walsh <adlaiff6 at 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



More information about the Python-ideas mailing list