3 ms·
Yeah, this is dumb as rocks. On top of what you said, Python already has a mechanism to do what the author is claiming! >>> def f(x, y, a, b): ... pri
by qsort 3y ago
Yeah, this is dumb as rocks.
On top of what you said, Python already has a mechanism to do what the author is claiming!
>>> def f(x, y, a, b):
... print(x, y, a, b)
...
>>> args = {'x': 98, 'y': 99, 'a': 1, 'b': 2}
>>> f(**args)
98 99 1 2
- theptip 3y agoDoesn’t work with functions that take an arbitrary number of positional args. Not sure of any real examples of that function API but I suspect that’s what Ned is going for.
- deleted 3y ago[deleted]