Hacker News new | ask | show | jobs
by nawgszy 2229 days 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