Check if hasattr(x,'some_global') returns True before the global variable is set in the module.
The answer is no.
Test:
$ python main.py
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||
Check if hasattr(x,'some_global') returns True before the global variable is set in the module.
The answer is no.
Test:
$ python main.py