In message <mailman.2771.1273327690.23598.python-l...@python.org>, Alex Hall 
wrote:

> ... I have about fifteen vars in a function which have to be
> global.

Why not make them class variables, e.g.

    class my_namespace :
        var1 = ...
        var2 = ...
    #end my_namespace

    def my_function(...) :
        ... can directly read/assign my_namespace.var1 etc here ...
    #end my_function

Also has the benefit of minimizing pollution of the global namespace.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to