On 5/18/2010 2:11 AM, shuvro wrote:
to know the attributes of an instance of a class without
actually creating that instance is very difficult.
Is it not possible with the existing python facilities (without adding
external libraries) ?
To know what a function would do if you were to call it
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
> > self.b = 20
>
> > def my_method(self,var = 20):
> > self.local_va
On May 17, 10:52 pm, shuvro wrote:
> 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
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