Get a list of class variables
Check the code below:
class Base: def __init__(self, name, age): self.name = name self.age = 0 if __name__ == "__main__": object = Base("Person Name") print (object.name)
I can access all the class variables using them with object name.
But i need a list of all the class variables, because in my real world program, I am not having a full access to the base code, so i need a list of all the class variables.
Hope I have conveyed my concern correctly.