def getargs(self, var=False):
retval = []<EOL>for arg in self.code.getargs(var):<EOL><INDENT>try:<EOL><INDENT>retval.append((arg, self.f_locals[arg]))<EOL><DEDENT>except KeyError:<EOL><INDENT>pass  <EOL><DEDENT><DEDENT>return retval<EOL>
return a list of tuples (name, value) for all arguments

            if 'var' is set True also include the variable and keyword
            arguments when present