
from __future__ import print_function

import legion

@legion.task
def f(ctx):
    print("inside task f")

@legion.task
def main_task(ctx):
    print("%x" % legion.c.legion_runtime_get_executing_processor(ctx.runtime, ctx.context).id)
    f(ctx)


from __future__ import print_function

import legion

@legion.task
def f(ctx, *args):
    print("inside task f%s" % (args,))

@legion.task
def main_task(ctx):
    print("inside main()")
    f(ctx, 1, "asdf", True)

Test Python support for arguments.
examples: Test Python support for arguments.

  
  from __future__ import print_function
  
  import legion
  
  @legion.task
- def f(ctx):
+ def f(ctx, *args):
-     print("inside task f")
+     print("inside task f%s" % (args,))
  
  @legion.task
  def main_task(ctx):
-     print("%x" % legion.c.legion_runtime_get_executing_processor(ctx.runtime, ctx.context).id)
-     f(ctx)
+     print("inside main()")
+     f(ctx, 1, "asdf", True)
  
Test Python support for arguments.
## Code Before:

from __future__ import print_function

import legion

@legion.task
def f(ctx):
    print("inside task f")

@legion.task
def main_task(ctx):
    print("%x" % legion.c.legion_runtime_get_executing_processor(ctx.runtime, ctx.context).id)
    f(ctx)

## Instruction:
Test Python support for arguments.
## Code After:

from __future__ import print_function

import legion

@legion.task
def f(ctx, *args):
    print("inside task f%s" % (args,))

@legion.task
def main_task(ctx):
    print("inside main()")
    f(ctx, 1, "asdf", True)
