On Sun, May 9, 2010 at 12:08 AM, Alex Hall <mehg...@gmail.com> wrote:
> Hi all,
> I am sorry if this is the second message about this you get; I typed
> this and hit send (on gmail website) but I got a 404 error, so I am
> not sure if the previous message made it out or not.
> Anyway, I have about fifteen vars in a function which have to be
> global. Is there a faster and more space-efficient way of doing this
> than putting each var on its own line; that is, fifteen "global
> varName" declarations? Thanks.

Using "globals" (global variables) is generally considered bad practise.

Consider instead using a class/object. You could for example
have a "config" object that is shared by other modules.

cheers
James
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to