class C: print(C) #fail def f(self): print(C) #pass