I find the documentation on the vars() function to be kind of cryptic: https://docs.python.org/3/library/functions.html#vars
What is the point of having this function? Why would you not just call x.__dict__ rather than vars(x) or locals() directly?
Would someone give a use case of the function?