In Python projects, if your project spans multiple Python modules and you need to pass some data between the modules, as far as I know, there's 2 main ways:
- Pass the data as function arguments
- Create a module that stores all your global variables, and import the module from the modules that need to use it
When does it make sense to use a global module for storing your variables, as opposed to passing the data as function arguments? When you have too many different modules using the same data, all needing it to be passed to them?