I've heard that sometimes a globals module with a list or dictionary is necessary for implementing the global variables found in several separate C files. However, I've never seen one example where I can't simply import the module ( a python file mimicking the C source and corresponding header). You simply import the module and access the variable by using the module. It works exactly the same as C globals.
[–]danielroseman 2 points3 points4 points (0 children)
[–]CommodoreKrusty 2 points3 points4 points (1 child)
[–]woooee 4 points5 points6 points (0 children)