|
|
|
|
|
by GVRV
1622 days ago
|
|
This got me thinking and I'm not even seeing the `self` being returned in the list of parameters on Python 3.8.5: >>> class Test:
... def test(self, a, b, c=5):
... return a + b + c
...
>>> t = Test()
>>> inspect.signature(t.test).parameters
mappingproxy(OrderedDict([('a', <Parameter "a">), ('b', <Parameter "b">), ('c', <Parameter "c=5">)]))
|
|