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

That Python code shouldn't work. It needs a 'return', assignments aren't expressions, and assigning to a nonlocal variable in the absence of a declaration just creates a local. (Might be nice if Python did look more like that, though!)


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

Search: