Antoine Pitrou wrote: > Personally, I cringe everytime I have to type > `os.path.dirname(os.path.dirname(os.path.dirname(...)))` to go two > directories upwards of a given path. Compare, with, say: > >>>>p = Path('/a/b/c/d') >>>>p.parent(2) Or if we allow slicing, p[:-2] -- Greg