[Tutor] slashes in paths

Jim Mooney cybervigilante at gmail.com
Sun Jul 21 01:37:39 CEST 2013


On 20 July 2013 13:46, Alan Gauld <alan.gauld at btinternet.com> wrote:

> The fact that you gave it a prefix containing forward
> slashes is confusing things. It works best with a list
> of individual folder names and let it provide the os.sep.
> Try splitting your partial path before feeding it to join.

Except I can't do that with 'C:' since the docs stay that on windows,
only 'c:/' is accepted as the base path, not 'c:'.

If only Bill Gates hadn't chosen '\', which is awkward to type and
hard to make compatible - but I think he figured his wonderful DOS
would be a Unix-killer, reign supreme, and there would be no
compatibility problem. All I can say to that is, "thank God for
competition."  ;')

Jim

At one time if someone had a lame idea,  you'd say, "That and ten
cents will get you a cup of coffee."   Now you have to say, "That and
five dollars and forty-eight cents will get you a double
creme-de-menthe Grande frappe, with a touch of juniper, nonfat creme,
and low on the sugar."

It just ain't the same.


More information about the Tutor mailing list