Why does this Python method re-use this variable?
4434
"Least Astonishment" and the Mutable Default Argument
13751
Why does Python code use len() function instead of a length method?
1462
UnboundLocalError on local variable when reassigned after first use
56876
Why do you need explicitly have the "self" argument in a Python method?
142031
Variable scope confusion in C#
26433
How does variable assignment work in JavaScript?
78122
What's the behavior of an uninitialized variable used as its own initializer?
67678
When is "i += x" different from "i = i + x" in Python?
108994
How can I get around declaring an unused variable in a for loop?
134363
Why does the global variable exist here, where it was declared only in Module?
40226
Python: Is the split function evaluated multiple times in a list comprehension?
29106
Variable appears to change size on every loop iteration - what?
142576
Why does [1].append(2) evaluate to None instead of [1,2]?
18605
Local variables in nested functions
153286
When to use `self.foo` instead of `foo` in Ruby methods
61828
What is the Python equivalent of static variables inside a function?
151869
What's the scope of a variable initialized in an if statement?