[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r31953 - branches/ctypes-python-bindings

From: Jeremy Whitlock <jcscoobyrs_at_gmail.com>
Date: Tue, 1 Jul 2008 12:59:03 -0600

> Wouldn't it be safer to use os.path.join() instead of string concatenation?
> This is for non-Unix platforms.

While I agree that os.path.join() is probably the preferred approach,
using "/" on Windows in Python is handled properly. The following are
all interpreted the same in Python:

os.path.exists("C:/svn-repos/test")
os.path.exists("C:\\svn-repos\\test")
os.path.exists(os.path.join("C:" + os.path.sep, "svn-repos", "test")

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-07-01 20:59:17 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.