How do I call setattr() on the current module?
What do I pass as the first parameter “object” to the function setattr(object, name, value), to set variables on the current module?
What do I pass as the first parameter “object” to the function setattr(object, name, value), to set variables on the current module?
I want to define a class containing read and write methods, which can be called as follows:
I am looking for someone to explain the basics of how to use, and not use setattr().