path module

Just van Rossum just at xs4all.nl
Tue Jul 8 15:51:03 CEST 2003


Skip Montanaro wrote:

>     Just>   a.join(b, c, d)
> 
>     Just> which I don't think is all that bad.
> 
> Yes, but 
> 
>     a/b/c/d
> 
> is nicely analogous to Unix pathname syntax.

But when the items are variables, what you read is not what you get.
Often you'll want (some) literals, and then you get

    path = basePath/"a"/"b"/"c"

...and _that_ I find quite horrible...

(Did I mention that / usually means divide in Python? ;-)

Just





More information about the Python-list mailing list