Skip to content
Permalink
Browse files

Merge pull request #718 from krekoten/proc_call

Proc#call when self is lambda
  • Loading branch information
alex committed May 20, 2013
2 parents cf8b9f6 + bba7edf commit ae837696161f6096ce410b9d39dd87dbd58fc59c

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

@@ -639,8 +639,11 @@ def invoke_block(self, block, args_w, block_arg=None):
block=block.block, parent_interp=block.parent_interp,
regexp_match_cell=block.regexp_match_cell,
)
if len(bc.arg_pos) != 0 or bc.splat_arg_pos != -1 or bc.block_arg_pos != -1:
frame.handle_block_args(self, bc, args_w, block_arg)
if block.is_lambda:
frame.handle_args(self, bc, args_w, block_arg)
else:
if len(bc.arg_pos) != 0 or bc.splat_arg_pos != -1 or bc.block_arg_pos != -1:
frame.handle_block_args(self, bc, args_w, block_arg)
assert len(block.cells) == len(bc.freevars)
for i in xrange(len(bc.freevars)):
frame.cells[len(bc.cellvars) + i] = block.cells[i]

0 comments on commit ae83769

Please sign in to comment.
You can’t perform that action at this time.