Lines Matching refs:arguments
165 """Call the callable with the arguments and keyword arguments
285 """Cycles among the arguments with the current loop index."""
310 # the the loop without or with too many arguments.
353 def __init__(self, environment, func, name, arguments, defaults,
357 self._argument_count = len(arguments)
359 self.arguments = arguments
367 # try to consume the positional arguments
368 arguments = list(args[:self._argument_count])
369 off = len(arguments)
371 # if the number of arguments consumed is not the number of
372 # arguments expected we start filling in keyword arguments
375 for idx, name in enumerate(self.arguments[len(arguments):]):
384 arguments.append(value)
386 # it's important that the order of these arguments does not change
388 # the order is caller, keyword arguments, positional arguments!
394 arguments.append(caller)
396 arguments.append(kwargs)
401 arguments.append(args[self._argument_count:])
404 (self.name, len(self.arguments)))
405 return self._func(*arguments)