kuroko/test/testQualname.krk
2021-02-25 10:03:52 +09:00

21 lines
398 B
Python

class TopLevel():
pass
class TopOfNested():
def func(self):
class Inner():
pass
return Inner
def topLevelFunc():
class OtherInner():
pass
return OtherInner
print(TopLevel.__qualname__)
print(TopOfNested.__qualname__)
print(TopOfNested().func().__qualname__)
print(TopOfNested().func())
print(topLevelFunc().__qualname__)
print(topLevelFunc())