Printing attributes of a class

Published: Wednesday, Dec 26, 2007 Last modified: Saturday, May 3, 2025

I should have known this:

print self.__dict__