We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10c92e5 commit 2f6eaa3Copy full SHA for 2f6eaa3
examples/gotchas/scope_leakage.py
@@ -1,4 +1,3 @@
1
-# - Python is dynamically scoped.
2
# - In Python, the smallest unit of scope is the function.
3
# - A for loop does not create a new namespace; it uses the surrounding namespace.
4
# - Hence, loop variables "leak" into the surrounding namespace.
0 commit comments