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

You can pull the values out with de-constructive assignment, as well, which is a little nicer:

(x, y) = your_fun()

Not sure how this performs comparatively, I'm not much of a python programmer, I didn't realize namedtuples were a thing (TIL)




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

Search: