On 11/04/2013 08:07 AM, Chris Angelico wrote:
On Tue, Nov 5, 2013 at 2:29 AM, anatoly techtonik <techto...@gmail.com> wrote:
Right. But I am working more with URL paths nowadays. In there if I
want to join two paths, no matter if 2nd starts with slash or not, I
don't really expect the 2nd to rewrite the first.

Then os.path.join is probably the wrong tool for the job. Do you want
to collapse "/foo/bar" + "../quux" into "/foo/quux"? That rewrites the
first. If not, don't use a function that does that. Try simple string
concatenation instead.

Wrong mailing list.  ;)

--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to