|
|
|
|
|
by ww520
4706 days ago
|
|
Because it's a hack in Python. Edit: Why not make all variables global? Why not just use convention to label a globally scoped variable as "global" or as "local"? You can make it work as a convention. Now apply that to the whole language and to all the developers ever use it. |
|
Why not make everything global? For obvious reasons - modularity, memory consumption, and inconvenience of lengthy variables names.