Re: getting attributes and methods of class without creating object
On May 18, 11:50 am, Patrick Maupin wrote: > On May 17, 10:52 pm, shuvro wrote: > > > > > Suppose I have a class like this - > > > class myClass(object): > > > def __init__(self): > > self.a = 10 > > s
getting attributes and methods of class without creating object
Suppose I have a class like this - class myClass(object): def __init__(self): self.a = 10 self.b = 20 def my_method(self,var = 20): self.local_var = var I want to know about its method(__init__ and my_method) and variables(a,b, local_var) without creating the obj