code: def textgetter(path: str, *,
                 default: T=NO_DEFAULT,
                 strip: bool=False) -> t.Callable[[Element], t.Union[str, T]]:
      
      find = compose(
          str.strip if strip else identity,
          partial(_raise_if_none, exc=LookupError(path)),
          methodcaller('findtext', path)
      )
      return (find if default is NO_DEFAULT else lookup_defaults(find, default))
docs: shortcut for making an XML element text getter