Is it possible to retrieve all arguments from an object, that has multiple parent classes, using inspect.getargspec()
or any other option?
Example:
import inspect
class One:
def __init__(self,a):
self.a = a
class Two:
def __init__(self,b):
self.b = b
class Three(One, Two):
pass
print(inspect.getargspec(Three.__init__))
Instead:
ArgSpec(args=['self', 'a'], varargs=None, keywords=None, defaults=None)
as an output, I am looking for the way to have:
['self', 'a','b']
for args.