4 ms·
Can you unpack tuples in Python? In JS for example you could write const [result, errmsg] = do_stuff(); And I guess you would be fine to omit the errmsg,
by nawgszy 6y ago
Can you unpack tuples in Python? In JS for example you could write
const [result, errmsg] = do_stuff();
And I guess you would be fine to omit the errmsg, even though I admit the resulting [result] syntax would be dissatisfying