def new_section(self, name, params=None):
        """Return a new section"""
        self.sections[name.lower()] = SectionTerm(None, name, term_args=params, doc=self)

        # Set the default arguments
        s = self.sections[name.lower()]

        if name.lower() in self.decl_sections:
            s.args = self.decl_sections[name.lower()]['args']

        return s
def new_section ( self , name , params = None ) : self . sections [ name . lower ( ) ] = SectionTerm ( None , name , term_args = params , doc = self ) s = self . sections [ name . lower ( ) ] if name . lower ( ) in self . decl_sections : s . args = self . decl_sections [ name . lower ( ) ] [ 'args' ] return s
Return a new section