Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

A question on os.path.join in POSIX systems

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


kushaldas at gmail

Jun 22, 2012, 10:54 AM

Post #1 of 2 (97 views)
Permalink
A question on os.path.join in POSIX systems

Hi all,

There is a comment on posixpath.join saying "Ignore the previous parts
if a part is absolute."
Is this defined in the POSIX spec ? If yes, then can someone please
point me to a link where I can read about it ?

Kushal
--
http://fedoraproject.org
http://kushaldas.in
--
http://mail.python.org/mailman/listinfo/python-list


dieter at handshake

Jun 22, 2012, 11:25 AM

Post #2 of 2 (92 views)
Permalink
Re: A question on os.path.join in POSIX systems [In reply to]

Kushal Das <kushaldas [at] gmail> writes:

> There is a comment on posixpath.join saying "Ignore the previous parts
> if a part is absolute."

It means: "join(something, abspath) == abspath" whenever "abspath"
is an absolute path.

> Is this defined in the POSIX spec ? If yes, then can someone please
> point me to a link where I can read about it ?

It has nothing to do with POSIX. It just describes a senseful
behavior of "join".

--
http://mail.python.org/mailman/listinfo/python-list

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.