On Sat, Dec 10, 2016 at 5:40 AM, Marko Rauhamaa <ma...@pacujo.net> wrote: >> How do you represent the current and previous directory in a list >> without reserving identifiers for them? > > My idea covered absolute pathnames only.
Well, you're going to need to cope with relative pathnames somehow. I suppose you could do: [RELATIVE, PARENT, PARENT, "subdir", "file"] but I'd rather use "../../subdir/file", myself. ChrisA -- https://mail.python.org/mailman/listinfo/python-list