I have a Python file that have the following lines:
import sys
global AdminConfig
global AdminApp
This script runs on Jython. I understand the use of global keyword inside functions, but what does the use of the "global" keyword on module level mean?
global x
changes the scoping rules forx
in current scope to module level, so whenx
is already at the module level, it serves no purpose.To clarify:
while
but
and