Skip to content

Commit

Permalink
Added docstring for _insert_parameters_into_intermediate_obj().
Browse files Browse the repository at this point in the history
  • Loading branch information
Bystroushaak committed Oct 5, 2019
1 parent 5499894 commit 1d9c5b3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/tinySelf/vm/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,19 @@ def _handle_nonlocal_return(self):
@jit.unroll_safe
def _insert_parameters_into_intermediate_obj(self, intermediate_obj,
parameter_names, parameters):
"""
Put together parameters and values for a method-object call and
insert them into the intermediate object, which is used as temporary
local namespace.
Note:
Parameters with unspecified values are padded with NIL.
Args:
intermediate_obj (Object): Object where the parameters will be inserted.
parameter_names (list[str]): List of parameter names.
parameters (list[Object]): List of values to pass as parameters.
"""
parameters_len = len(parameters)
parameter_names_len = len(parameter_names)
for i in range(parameter_names_len):
Expand Down

0 comments on commit 1d9c5b3

Please sign in to comment.