I am having a class and a object for that class. Problem is when I have to make changes in the class methods, I have to kill the object and initiate another object. Is there a way I can get the modified functionality without killing object
Class ABC:
def abc():
print "Hello I am original text"
I am calling the class as
import ABC
obj = ABC()
obj.abc() is printing the desired output
If I want to make changes in the method abc or write a new method for the class, I have to reopen the python shell and have a new obj.
I am looking for a way where I can reload the class again and same object will have new properties of the class
I am using Python 2.7 and tried few things that I got like reload(module)
Giving negative rating is fine but there should be a reason for that. Just like if you don't have answer to that or does not understand it well, won't qualify you to give negative rating