Hi,
I have created objects 'n' number of times based on my requirement.Whe ther I have to delete this object variable for everytime ,when I use for next time
Say
for i in list:
-----
Obj = MyClass()
func1(Obj)
The above example shows that we are creating the objects for more than once and making use of it.But we are not deleting.
Whether the above approach is correct.
Thnaks
PSB
I have created objects 'n' number of times based on my requirement.Whe ther I have to delete this object variable for everytime ,when I use for next time
Say
for i in list:
-----
Obj = MyClass()
func1(Obj)
The above example shows that we are creating the objects for more than once and making use of it.But we are not deleting.
Whether the above approach is correct.
Thnaks
PSB
Comment