Python handles globals badly.

Michael Torrie torriem at gmail.com
Thu Sep 3 11:50:46 EDT 2015


On 09/03/2015 07:22 AM, tdev at freenet.de wrote:
> First topic: 
> "sharing globals between modules"
> Where globals is meant as vars used throughout the app.
>
> This is the topic why Skybuck starts the thread.

The answer to this is simple and elegant.  Use a third module to store
globals. Each module that needs it can simply import it.





More information about the Python-list mailing list