Is there a standard function that will check whether certain *args, and **kwargs satisfy a argspec of a function (s.t. it does not throw a TypeError). Say:<br><br>def foo(a,b=1):<br> pass<br><br>check(foo, 1,2) # True<br>
check(foo, 1) # True<br>check(foo) # False<br>check(foo, 1, a=2) # False<br><br>Cheers,<br>Andrey<br>