(self, section_id)
fetch the section with the given id.

        Args:
          section_id (int): the section id.

        Returns:
          wasm.Structure: the section.

        Raises:
          KeyError: if the section is not found.
fetch the section with the given id.
fetch the section with the given id .
def _get_section(self, section_id):
        '''
        fetch the section with the given id.

        Args:
          section_id (int): the section id.

        Returns:
          wasm.Structure: the section.

        Raises:
          KeyError: if the section is not found.
        '''
        for i, section in enumerate(self.sections):
            if i == 0:
                continue

            if section.data.id != section_id:
                continue

            return section

        raise KeyError(section_id)
def _get_section ( self , section_id ) : for i , section in enumerate ( self . sections ) : if i == 0 : continue if section . data . id != section_id : continue return section raise KeyError ( section_id )