(self, section, option)
return (option in sec)
Check for the existence of a given option in a given section.
Check for the existence of a given option in a given section.
Check for the existence of a given option in a given section .
def has_option(self, section, option):
        """Check for the existence of a given option in a given section."""
        if section in self.data:
            sec = self.data[section]
        else:
            raise NoSectionError(section)
        return (option in sec)
def has_option ( self , section , option ) : if section in self . data : sec = self . data [ section ] else : raise NoSectionError ( section ) return ( option in sec )