4 ms·
> variable scope Which parts did you find confusing? Was it the lack of a block-level scope, such as within for loops and if statements? I personally find the
by NoahTheDuke 9y ago
> variable scope
Which parts did you find confusing? Was it the lack of a block-level scope, such as within for loops and if statements? I personally find the LEGB (Local, Enclosing, Global, Builtin) system to be pretty intuitive.
[0]: https://stackoverflow.com/a/23471004/3023252 https://stackoverflow.com/a/23471004/3023252
- blauditore 9y agoI think one thing I found particularly confusing is how class and instance variables relate to each other. It takes a while to understand how they get masked and in what case which one is referenced.