Hi, I stumbled on this link while looking for a way to add an extra check for python function arguments. The scenario for which i want to write a checker is this:
def foo(name1, var1=value1, *args): The idea is that we should not define keyword arguments(*var1*) before positional arguments(**args*). Although, the function is still callable by passing *var1* as positional arguments but there would be now way to not specify *var1* but specify* args*. I was going through the *checkers/typecheck.py* file but could not understand it concretely. I am basically unable to find how to get retrieve argument from Astng Function node. I am using visit_function() inside a checker class to visit all function nodes but not able to get list of arguments. Also, is there a function which returns <type function> if we pass Astng Function node to it? Thanks in advance! -- Regards, Ahirnish
_______________________________________________ Python-Projects mailing list Python-Projects@lists.logilab.org https://lists.logilab.org/mailman/listinfo/python-projects