On 2/19/2009 3:47 AM Bruno Desthuilliers apparently wrote:
if not hasattr(self, attr) and getattr(self, '_attrlock', False): raise AttributeError(yadda yadda) # NB: assume newstyle class super(YourClass, self).__setattr__(attr, val)
Thanks. Alan PS Thanks also to all who restrained themselves from saying, "don't do this". ;-) -- http://mail.python.org/mailman/listinfo/python-list