[Python-ideas] os.path.join

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Oct 30 23:10:35 CET 2013


Bruce Leban wrote:
> It references the same file as 
> these commands:
> 
> cd /static
> cat /styles/largestyles,css
> 
> On 
> the other hand, this is also documented and it's wrong by the above standard
> 
>  >>> os.path.join(r'c:\abc', r'\def\g')   # Windows paths
> '\\def\\g'

Actually, it's not -- it gives the same result as the
equivalent series of Windows CLI commands. Whether that's
a *useful* result is another matter. :-(

-- 
Greg


More information about the Python-ideas mailing list