Get section name tuple

        :param section: section name
        :return: tuple object
340430
def getAsTuple(self, section):
        
        keys = self.getKeys(section)
        value_dict = self.getValues(section)
        return namedtuple(section, keys)(**value_dict)
1265852
def get_sections(self, hdrgo, dflt_section=True):
        """"""
        dflt_list = []
        # If the hdrgo is not in a section, return the default name for a section
        if dflt_section:
            dflt_list = [self.secdflt]
        return self.hdrgo2sections.get(hdrgo, dflt_list)
1092716
def getlist(self, section, option):
        
        value = self.get(section, option)
        if value:
            return value.split(',')
        else:
            return None
1201796
def items(self, section):
        
        items = []
        for k, v in ConfigParser.items(self, section):
            if self.is_secure_option(section, k):
                v = self.get(section, k)
            if v == '!!False!!':
                v = False
            items.append((k, v))
        return items
840723
def get_section_data(self, name):
        """"""
        logging.debug(_('Obtaining PE section: %s'), name)
        for section in self.binary.sections:
            if section.Name.rstrip(b'\x00') == name:
                return section.get_data()
        return b''
1211584
def getSectionName(configObj,stepnum):
    
    for key in configObj.keys():
        if key.find('STEP '+str(stepnum)+':') >= 0:
            return key
1030242
def section(self, dept, course_number, sect_number):
        
        section_id = dept + course_number + sect_number
        sections = self.search({'course_id': section_id})
        try:
            return next(sections)
        except StopIteration:
            raise ValueError('Section %s not found' % section_id)
334694
function getObject(section) {
  var o = {}
    , i
    , k
    , name
    , method
    , sections = section ? [section] : keys
    , rusage = proc.usage();

  for(i = 0;i < sections.length;i++) {
    k = sections[i];
    name = k.charAt(0).toUpperCase() + k.substr(1);
    method = 'get' + name
    o[k] = {
      header: name,
      data: this[method](rusage)
    }
  }
  return o;
}
31942
def section(self, section):
        
        if not isinstance(self._container, ConfigUpdater):
            raise ValueError("Sections can only be added at section level!")
        if isinstance(section, str):
            # create a new section
            section = Section(section, container=self._container)
        elif not isinstance(section, Section):
            raise ValueError("Parameter must be a string or Section type!")
        if section.name in [block.name for block in self._container
                            if isinstance(block, Section)]:
            raise DuplicateSectionError(section.name)
        self._container.structure.insert(self._idx, section)
        self._idx += 1
        return self
883820
public function get_section_name($section) {
        if (is_object($section)) {
            $sectionnum = $section->section;
        } else {
            $sectionnum = $section;
        }

        if (get_string_manager()->string_exists('sectionname', 'format_' . $this->format)) {
            return get_string('sectionname', 'format_' . $this->format) . ' ' . $sectionnum;
        }

        // Return an empty string if there's no available section name string for the given format.
        return '';
    }
666682
def _asDict(self):
        
        config = defaultdict(dict)
        for section in self._sections:
            for name, value in self._sections[section].items():
                if name != '__name__':
                    config[section.lower()][name.lower()] = value
        return dict(config)
583103
def keys(self, section, prefix=None):
        
        return [key for key, _ in self.items(section) if (not prefix or key.startswith(prefix))]
569830
def section(self, title=None):
        
        for section in self.sections():
            if section.title.lower() == title.lower():
                return section
        raise NotFound('Invalid library section: %s' % title)
1190243
def get_section_path(section):
    
    keys = []
    p = section
    for i in range(section.depth):
        keys.insert(0, p.name)
        p = p.parent
    return keys
616820
def get(section, name):
    
    cfg = ConfigParser.SafeConfigParser({"working_dir": "/tmp", "debug": "0"})
    cfg.read(CONFIG_LOCATIONS)
    val = cfg.get(section, name)
    return val.strip("'").strip('"')
271861
def _GetSectionNames(self, pefile_object):
    
    section_names = []
    for section in pefile_object.sections:
      section_name = getattr(section, 'Name', b'')
      # Ensure the name is decoded correctly.
      try:
        section_name = '{0:s}'.format(section_name.decode('unicode_escape'))
      except UnicodeDecodeError:
        section_name = '{0:s}'.format(repr(section_name))
      section_names.append(section_name)

    return section_names
292635
def get_item_attribute(self, item, name):
        
        if name in self.__item_attributes:
            return self.__item_attributes[name](item)
        elif self.section:
            return self.section.get_item_attribute(item, name)
        else:
            raise AttributeError(name)