Re: What's the life time of the variable defined in a class function?

2007-04-30 Thread 人言落日是天涯,望极天涯不见家
On Apr 30, 5:20 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > 人言落日是天涯,望极天涯不见家 wrote: > > Please see the followed example: > > class A: > >     def __init__(self): > >         pass > > > class X: > >     def __init__(self): > >         n = 200 > >         if True: > >             j = 200 > >  

Re: What's the life time of the variable defined in a class function?

2007-04-30 Thread Diez B. Roggisch
人言落日是天涯,望极天涯不见家 wrote: > Please see the followed example: > class A: > def __init__(self): > pass > > class X: > def __init__(self): > n = 200 > if True: > j = 200 > m = j > k = A() > print m, j > > a = X() > # ?? what about the

What's the life time of the variable defined in a class function?

2007-04-30 Thread 人言落日是天涯,望极天涯不见家
Please see the followed example: class A: def __init__(self): pass class X: def __init__(self): n = 200 if True: j = 200 m = j k = A() print m, j a = X() # ?? what about the m, n and j? is it still alive? del a -