String handling bug in Python

David Bolen db3l at fitlinxx.com
Mon Apr 29 20:14:00 EDT 2002


Tim Peters <tim.one at comcast.net> writes:

> Forward slashes are easier for almost everyone to type than backward
> slashes, and work fine on Windows.  Paths using forward slashes also run
> 13-17 times faster in Python code, due to Python's Unix heritage <wink>.

Just as an FYI, forward slashes don't actually work *everywhere* on
Windows - there are notable UNC names that must use \\ as a prefix and
won't accept // in the API.  It's not that common but I've been bitten
by it in the past.

But they definitely work in any local file API.

--
-- David
-- 
/-----------------------------------------------------------------------\
 \               David Bolen            \   E-mail: db3l at fitlinxx.com  /
  |             FitLinxx, Inc.            \  Phone: (203) 708-5192    |
 /  860 Canal Street, Stamford, CT  06902   \  Fax: (203) 316-5150     \
\-----------------------------------------------------------------------/



More information about the Python-list mailing list