class A(object):
def A():
print('factory')
return A()
def __init__(self):
print('init')
def __call__(self):
print('call')
print('chamar o construtor')
a = A()
print('chamar o construtor e a função')
b = A()()
print('chamar a função')
c = A.A()
Y2xhc3MgQShvYmplY3QpOgogICAgZGVmIEEoKToKICAgICAgICBwcmludCgnZmFjdG9yeScpCiAgICAgICAgcmV0dXJuIEEoKQogICAgZGVmIF9faW5pdF9fKHNlbGYpOgogICAgICAgIHByaW50KCdpbml0JykKICAgIGRlZiBfX2NhbGxfXyhzZWxmKToKICAgICAgICBwcmludCgnY2FsbCcpCnByaW50KCdjaGFtYXIgbyBjb25zdHJ1dG9yJykKYSA9IEEoKQpwcmludCgnY2hhbWFyIG8gY29uc3RydXRvciBlIGEgZnVuw6fDo28nKQpiID0gQSgpKCkKcHJpbnQoJ2NoYW1hciBhIGZ1bsOnw6NvJykKYyA9IEEuQSgpCg==