python 2.7.12 on Linux behaving differently than on Windows

Chris Angelico rosuav at gmail.com
Fri Dec 9 13:49:00 EST 2016


On Sat, Dec 10, 2016 at 5:40 AM, Marko Rauhamaa <marko at 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



More information about the Python-list mailing list