K
Krishna
class Test(object):
.... def __init__(self):
.... self.a= 2
.... def func(self, k = self.a):
.... print k
....
Traceback (most recent call last):
File "<stdin>", line 1, in ?
In the 'definition of the class', what would the first argument 'self'
in the methods evaluate to; when we have an object defined, it is
bound to the object reference, but what happens while the class
definition is executed, which I believe happens when the module
containing the class definition is imported
Thanks,
Kr
.... def __init__(self):
.... self.a= 2
.... def func(self, k = self.a):
.... print k
....
Traceback (most recent call last):
File "<stdin>", line 1, in ?
In the 'definition of the class', what would the first argument 'self'
in the methods evaluate to; when we have an object defined, it is
bound to the object reference, but what happens while the class
definition is executed, which I believe happens when the module
containing the class definition is imported
Thanks,
Kr