(self, thing)
:param thing:    Either a set of Boolean switches to enable, or an existing SimStateOptions instance.
:param thing:    Either a set of Boolean switches to enable, or an existing SimStateOptions instance.
: param thing : Either a set of Boolean switches to enable or an existing SimStateOptions instance .
def __init__(self, thing):
        """
        :param thing:    Either a set of Boolean switches to enable, or an existing SimStateOptions instance.
        """

        self._options = { }
        if thing is None:
            pass
        elif isinstance(thing, (set, list)):
            boolean_switches = thing
            for name in boolean_switches:
                self[name] = True
        elif isinstance(thing, SimStateOptions):
            ops = thing
            self._options = ops._options.copy()
        else:
            raise SimStateOptionsError("Unsupported constructor argument type '%s'." % type(thing))
def __init__ ( self , thing ) : self . _options = { } if thing is None : pass elif isinstance ( thing , ( set , list ) ) : boolean_switches = thing for name in boolean_switches : self [ name ] = True elif isinstance ( thing , SimStateOptions ) : ops = thing self . _options = ops . _options . copy ( ) else : raise SimStateOptionsError ( "Unsupported constructor argument type '%s'." % type ( thing ) )