Naming positional arguments at call site

You’re overlooking the perhaps most obvious way of naming arguments:

x = [1,2]
y = [1,2]
my_func(x, y)

Another alternative is

my_func(
    [1,2], # x
    [1,2], # y
)
13 Likes