parameters: (self, name)
docstring: Raises ValueError if family already exists.
docstring_summary: Raises ValueError if family already exists.
docstring_tokens: Raises ValueError if family already exists .
function: def createFamily(self, name):
        """
        Raises ValueError if family already exists.
        """
        self._checkFamilyName(name)
        new_family_list = []
        for existing_name in self._family_list:
          if existing_name is None and name is not None:
            new_family_list.append(name)
            name = None
          else:
            new_family_list.append(existing_name)
        if name is None:
          # A free spot has been recycled.
          self._family_list = tuple(new_family_list)
        else:
          # No free spot, append.
          self._family_list += (name, )
function_tokens: def createFamily ( self , name ) : self . _checkFamilyName ( name ) new_family_list = [ ] for existing_name in self . _family_list : if existing_name is None and name is not None : new_family_list . append ( name ) name = None else : new_family_list . append ( existing_name ) if name is None : # A free spot has been recycled. self . _family_list = tuple ( new_family_list ) else : # No free spot, append. self . _family_list += ( name , )