Global variables for python applications

James Mills prologic at shortcircuit.net.au
Sun May 16 13:58:18 EDT 2010


On Mon, May 17, 2010 at 3:50 AM, AON LAZIO <aonlazio at gmail.com> wrote:
> Hi,
>    How can I set up global variables for the entire python applications?
> Like I can call and set this variables in any .py files.
>    Think of it as a global variable in a single .py file but this is for the
> entire application.

If you have to use global variables in your application you are
designing it WRONG!

Python has powerful support for object orientated programming. Use it!

I highly recommend the Python tutorial - especially the section on classes.

--James



More information about the Python-list mailing list