code: def splitext(path):
      "Same as os.path.splitext() but faster."
      sep = rightmost_separator(path, os.sep)
      dot = path.rfind('.')
      # An ext is only real if it has at least one non-digit char
      if dot > sep and not containsOnly(path[dot:], "0123456789."):
          return path[:dot],path[dot:]
      else:
          return path,"f splitext(path):
      "Same as os.path.splitext() but faster."
      sep = rightmost_separator(path, os.sep)
      dot = path.rfind('.')
      # An ext is only real if it has at least one non-digit char
      if dot > sep and not containsOnly(path[dot:], "0123456789."):
          return path[:dot],path[dot:]
      else:
          return path,""
docs: Same as os.path.splitext() but faster.