In message <[email protected]>, 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
