J
John Dean
Hi
I have been reading quite a lot of Python source code recently and I have
come across a particular construct which I don't understand. I would be
grateful if somebody could explain the reason for including the following
lines of code. I have seen it only at the beginning of a module:-
global sys
import sys
global os
import os
.....
.....
I know what global means and I know what import means but what is the reason
for making an imported module global?
I have been reading quite a lot of Python source code recently and I have
come across a particular construct which I don't understand. I would be
grateful if somebody could explain the reason for including the following
lines of code. I have seen it only at the beginning of a module:-
global sys
import sys
global os
import os
.....
.....
I know what global means and I know what import means but what is the reason
for making an imported module global?