def splitext(self, path): idx = path.rfind('.') if idx == -1: idx = len(path) return (path[0:idx], path[idx:])
def split(self, path): idx = path.rfind(self.sep) if idx == -1: return ('', path) return (path[:idx], path[(idx + 1):])
def splitext(self, path): idx = path.rfind('.') if idx == -1: idx = 0 return (path[0:idx], path[idx:])
def splitext(self, path): idx = path.rfind(".") if idx == -1: idx = len(path) return (path[0:idx], path[idx:])