def __len__(self):
    'Return the total number of path components.'
    i = (- 1)
    for (i, _) in enumerate(self):
        pass
    return (i + 1)
Return the total number of path components.
def __len__(self):
    
    i = (- 1)
    for (i, _) in enumerate(self):
        pass
    return (i + 1)