global (readonly):
a good approach:
- If you have only 1 file: declare global variables at the top.
- If you have many files use them: write all that variables to a config file, use ConfigParser to read them in.
global (not-readonly):
pass it around! don't use global
SO: you should never use
global keyword
No comments:
Post a Comment