python 2.7.12 on Linux behaving differently than on Windows

Marko Rauhamaa marko at pacujo.net
Fri Dec 9 00:44:26 EST 2016


Chris Angelico <rosuav at gmail.com>:

> On Fri, Dec 9, 2016 at 10:03 AM, Marko Rauhamaa <marko at pacujo.net> wrote:
>> I find it a bit annoying that "/" cannot be used in Linux filenames.
>> Slashes have very common everyday uses and it's a pity they are
>> reserved. Instead, ASCII control characters are allowed, which is of
>> no use.
>
> How would you do otherwise? How do you separate directories in a path?
> Remember, it needs to be easy to type, and easy to read. You could
> pick some other keyboard character, but you won't really gain much.

There are numerous ways. For example:

   [ "firmware", "CP/M", "2016-12-09" ]
   path("firmware", "CP/M", "2016-12-09")
   file:///firmware/CP%2fM/2016-12-09


Marko



More information about the Python-list mailing list