How can I set a global value in a function that is a class function? I know I can use self.res in constructor, but just wondering why it is wrong to do the followin
self.res