►
Run
class X: a = 1 b = 2 result = dir(X) #print items in the result list for item in result: print(item)
Output