shortcut for large amount of global var declarations?

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Sat May 8 14:47:32 EDT 2010


On Sat, 08 May 2010 10:08:08 -0400, Alex Hall 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.

global google, for_, global_, variables, considered, harmful



-- 
Steven



More information about the Python-list mailing list