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 xchanges the scoping rules forxin current scope to module level, so whenxis already at the module level, it serves no purpose.To clarify:
while
but
and