Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

FYI... neither of those work. Sort (using the dot sort() notation) operates on a mutable list in place, and returns no value. Never use it on the right side of an assignment. Its like dict's `update` in that regard.


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

Search: