If I want to access the list of instance variables of an object, I can call myObject.__dict__.keys(). I want to use this attribute to print out all instance variables of an object. I am hesitant to do this because __dict__ is a "secret" attribute, and I do not understand what this footnote means.
So is it wrong to use myObject.__dict__?
vars(myObject)stylistically, but that's orthogonal to your question. It gives the same dict.