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

The tradeoff here is that you don't have to explicitly declare new variables (something like `var` in js). Most people who work with python on a daily basis know you need the `global` keyword to avoid shadowing.

I think it was a good choice in the sense that it discourages mutable global state and makes the most common case more concise.



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

Search: