def variable_from_module(module, variable=None, default=None):
 if (not module):
  return default
 mod = mod_import(module)
 if variable:
  result = []
  for var in make_iter(variable):
   if var:
    result.append(mod.__dict__.get(var, default))
 else:
  result = [val for (key, val) in mod.__dict__.items() if (not (key.startswith('_') or ismodule(val)))]
 if (len(result) == 1):
  return result[0]
 return result

def variable_from_module ( module , variable = None , default = None ) : if ( not module ) : return default mod = mod_import ( module ) if variable : result = [ ] for var in make_iter ( variable ) : if var : result . append ( mod . __dict__ . get ( var , default ) ) else : result = [ val for ( key , val ) in mod . __dict__ . items ( ) if ( not ( key . startswith ( '_' ) or ismodule ( val ) ) ) ] if ( len ( result ) == 1 ) : return result [ 0 ] return result
retrieve a variable or list of variables from a module .