def _add_constant(name, container=None):
 c = getattr(constants, name, _UNDEFINED)
 if (c == _UNDEFINED):
  return
 globals()[name] = c
 __all__.append(name)
 if (container is not None):
  container.add(c)
 return c

def _add_constant ( name , container = None ) : c = getattr ( constants , name , _UNDEFINED ) if ( c == _UNDEFINED ) : return globals ( ) [ name ] = c __all__ . append ( name ) if ( container is not None ) : container . add ( c ) return c
add a constant to be defined optionally add it to one of the sets for use in get/setopt checkers .