Skip to content

Commit 2f6eaa3

Browse files
committed
fix nonsense: Python is lexically scoped
1 parent 10c92e5 commit 2f6eaa3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

examples/gotchas/scope_leakage.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# - Python is dynamically scoped.
21
# - In Python, the smallest unit of scope is the function.
32
# - A for loop does not create a new namespace; it uses the surrounding namespace.
43
# - Hence, loop variables "leak" into the surrounding namespace.

0 commit comments

Comments
 (0)