Hacker News new | past | comments | ask | show | jobs | submit login

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



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: