Home | History | Annotate | Download | only in jinja2

Lines Matching refs:arguments

168         """Call the callable with the arguments and keyword arguments
300 """Cycles among the arguments with the current loop index."""
332 # the the loop without or with too many arguments.
380 def __init__(self, environment, func, name, arguments, defaults,
384 self._argument_count = len(arguments)
386 self.arguments = arguments
394 # try to consume the positional arguments
395 arguments = list(args[:self._argument_count])
396 off = len(arguments)
398 # if the number of arguments consumed is not the number of
399 # arguments expected we start filling in keyword arguments
402 for idx, name in enumerate(self.arguments[len(arguments):]):
411 arguments.append(value)
413 # it's important that the order of these arguments does not change
415 # the order is caller, keyword arguments, positional arguments!
421 arguments.append(caller)
423 arguments.append(kwargs)
428 arguments.append(args[self._argument_count:])
431 (self.name, len(self.arguments)))
432 return self._func(*arguments)