From: Marcelo M. <mm...@ac...> - 2006-01-26 18:19:25
|
maybe for name in module.cvar.__dict__: print "varname %s" % (name,) or just print module.cvar.__dict__ Marcelo Didier DOUSSAUD wrote: > Hi, > > I search how to get the list of global variable name : > > a function like "iter_global_names" in the next sample : > > for name in module.iter_global_names() : > print "%s = %s" % ( name, eval( " module.cvar." + name ) ) > > is it possible ? > |