

21·
2 hours agoyou’re missing the asterisk to expand the tuple returned by splitter:
print(calculate(*splitter(expression)))
if you’re using VS Code, check out the error lens extension
you’re missing the asterisk to expand the tuple returned by splitter:
print(calculate(*splitter(expression)))
if you’re using VS Code, check out the error lens extension
tbh they probably can, it’s just more ctrl
involved
f-s-tab is feeble. Unsatisfactory. Bureaucratic.
f-stab is jocose. Nonchalant. Sharp.
This is such an underutilized and neglected behavior.
The very least a config parser should do is to log a warning.
I just got a “swipe right or left” ad for duo
thanks, spotify, for occasionally reminding me I’m single
that’s not
trueaccurate, this is valid code in this context:x, y, z = splitter(expression)
Where x, y, and z are strings. But when you do this, akin to what OP did:
value = splitter(expression)
then
value
is a tuple of 3 strings.In fact, unpacking with asterisk at assignment, like below, is not allowed:
x, y, z = *splitter(expression)
x, y, z = *splitter(expression) ^^^^^^^^^^^^^^^^^^^^^ SyntaxError: can't use starred expression here