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

That is correct.

Python used to be worse; it used to share scope outside the list comprehension.



It still does for regular loops right?


Yeah loops don't get their own scopes (unless you add one using this thing I made as a joke: https://github.com/davisyoshida/360blockscope)




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

Search: