def get_or_new_section(self, name, params=None):
        """Create a new section or return an existing one of the same name"""
        if name not in self.sections:
            self.sections[name.lower()] = SectionTerm(None, name, term_args=params, doc=self)

        return self.sections[name.lower()]
def get_or_new_section ( self , name , params = None ) : if name not in self . sections : self . sections [ name . lower ( ) ] = SectionTerm ( None , name , term_args = params , doc = self ) return self . sections [ name . lower ( ) ]
Create a new section or return an existing one of the same name