In a nutshell: Is it possible and in good practice to have a list in one module be accessed and modified from several others or it better be restructured to be used in only the one in which they were created?
I am writing a game and as it got above 1500 lines, i thought it would be high time to restructure it into modules for easier maintaining. In the original program there were several lists, that stored gameobjects like tiles and such. These lists were accessed for iterating over, and also to be appended to from several classes.
I thought of putting all lists/dicts that need accessing from several others into their own storage module, and importing the appropriate containers into the modules they are needed in, but it didnt seem like it worked.
Can this be done properly?