I'm not sure if this is a duplicate question. I was reading information online (including here, e.g. How to get a function name as a string in Python?) and messing around with the various suggestions, but the various information is either outdated/not for my specific use case/I am simply implementing it incorrectly.
The problem:
I'm passing the method of an object as a parameter. I would like to know what the full name of this object and method is.
Example code (where I'm am at thus far):
class test():
def asdf():
print('asdf')
def magic(command):
print('command is:', command.__name__)
magic(test.asdf)
The goal would be to go from having magic() outputting 'command is: asdf' to 'command is: test.asdf' since that's the full name of the parameter.