class Test:
def __init__(self):
print("Class Test instance initialized")
def __call__(self, *arguments, **keywords):
print("Arguments are:", arguments, keywords)
o = Test()
print("call the instance:")
o(7, 8, 9, 10, a=11, b=22, c=33)
o(300, 400, a=8888, b=7777, c=6666, d=5555)
'''
run:
Class Test instance initialized
call the instance:
Arguments are: (7, 8, 9, 10) {'c': 33, 'b': 22, 'a': 11}
Arguments are: (300, 400) {'d': 5555, 'c': 6666, 'b': 7777, 'a': 8888}
'''