En Thu, 19 Feb 2009 01:29:17 -0200, Alan G Isaac
escribió:
OK, that's good. I'd like to sometimes lock attribute creation on
instances of a class but still allow properties to function
correctly. Will something like below be satisfactory?
def __setattr__(self, attr, val):
"""If insta
On 2/18/2009 6:15 PM Gabriel Genellina apparently wrote:
type(a).x
OK, that's good. I'd like to sometimes lock attribute creation on
instances of a class but still allow properties to function
correctly. Will something like below be satisfactory?
Thanks,
Alan
def __setattr__(self, attr, v