class C:
def f(): pass
class D:
def g(): pass
print(C.__qualname__)
print(C.f.__qualname__)
print(C.D.__qualname__)
print(C.D.g.__qualname__)
print(C.__name__)
print(C.f.__name__)
print(C.D.__name__)
print(C.D.g.__name__)
def f():
def g(): pass
return g
print(f.__qualname__)
print(f().__qualname__)
print(f.__name__)
print(f().__name__)
#https://pt.stackoverflow.com/q/339502/101
Y2xhc3MgQzoKICAgZGVmIGYoKTogcGFzcwogICBjbGFzcyBEOgogICAgIGRlZiBnKCk6IHBhc3MKCnByaW50KEMuX19xdWFsbmFtZV9fKQpwcmludChDLmYuX19xdWFsbmFtZV9fKQpwcmludChDLkQuX19xdWFsbmFtZV9fKQpwcmludChDLkQuZy5fX3F1YWxuYW1lX18pCnByaW50KEMuX19uYW1lX18pCnByaW50KEMuZi5fX25hbWVfXykKcHJpbnQoQy5ELl9fbmFtZV9fKQpwcmludChDLkQuZy5fX25hbWVfXykKCmRlZiBmKCk6CiAgIGRlZiBnKCk6IHBhc3MKICAgcmV0dXJuIGcKCnByaW50KGYuX19xdWFsbmFtZV9fKQpwcmludChmKCkuX19xdWFsbmFtZV9fKQpwcmludChmLl9fbmFtZV9fKQpwcmludChmKCkuX19uYW1lX18pCgojaHR0cHM6Ly9wdC5zdGFja292ZXJmbG93LmNvbS9xLzMzOTUwMi8xMDE=