(p)
return p[i:]
Returns the final component of a pathname
Returns the final component of a pathname
Returns the final component of a pathname
def basename(p):
    """Returns the final component of a pathname"""
    sep = _get_sep(p)
    i = p.rfind(sep) + 1
    return p[i:]
def basename ( p ) : sep = _get_sep ( p ) i = p . rfind ( sep ) + 1 return p [ i : ]