(self, arch, **options)
Constructor.

        :param archinfo.Arch arch: The architecture instance.
        :param dict options: Architecture-specific options, which will be used to initialize this object.
Constructor.
Constructor .
def __init__(self, arch, **options):
        """
        Constructor.

        :param archinfo.Arch arch: The architecture instance.
        :param dict options: Architecture-specific options, which will be used to initialize this object.
        """

        self.arch = arch

        self._options = {}

        if self.arch.name in self.OPTIONS:
            for k, (_, value) in self.OPTIONS[self.arch.name].items():
                self._options[k] = value

        # make sure options are valid
        for k in options.keys():
            if self.arch.name not in self.OPTIONS or k not in self.OPTIONS[self.arch.name]:
                raise KeyError('Architecture %s does not support arch-specific option "%s".' % (self.arch.name, k))

        for k, v in options.items():
            self.__setattr__(k, v)
def __init__ ( self , arch , * * options ) : self . arch = arch self . _options = { } if self . arch . name in self . OPTIONS : for k , ( _ , value ) in self . OPTIONS [ self . arch . name ] . items ( ) : self . _options [ k ] = value # make sure options are valid for k in options . keys ( ) : if self . arch . name not in self . OPTIONS or k not in self . OPTIONS [ self . arch . name ] : raise KeyError ( 'Architecture %s does not support arch-specific option "%s".' % ( self . arch . name , k ) ) for k , v in options . items ( ) : self . __setattr__ ( k , v )