On Thursday 01 March 2012 15:54:01 Victor Stinner wrote: > > I'm not sure about your final types. I'm using __slots__ = () for such > > things > > You can still replace an attribute value if a class defines __slots__: > >>> class A: > > ... __slots__=('x',) > ... x = 1 > ... > > >>> A.x=2 > >>> A.x > > 2
Ah, ok, I missed that. It should be fixable with a metaclass. Not very nicely, though. nd _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com