utils¶
Utility module for things that make the arc apis cleaner
dispatch_args(func, *args)
¶
Calls the given func with the maximum
slice of *args that it can accept. Handles
function and method types
For example:
def foo(bar, baz): # only accepts 2 args
arc.print(bar, baz)
# Will call the provided function with the first
# two arguments
dispatch_args(foo, 1, 2, 3, 4)
# 1 2
Source code in /home/runner/work/arc/arc/arc/utils.py
display(*members)
¶
Construct a repr that displays the values of the provided members