On Sun, 09 Dec 2001 10:27:01 -0800, Chuck Esterbrook wrote:
>
>Forward slashes in pathnames work on all platforms (for a Python 
>program).

...unless you are calling the shell through something like os.system, or 
accessing the Windows registry.  None of the Windows command shells understand 
forward slashes.  Indeed, the shells accept the CP/M "forward slash" as an 
alias for the "dash" argument flag, thereby maximizing confusion.

>This begs the question if the conventional wisdom of using 
>os.path.join and os.sep is worthwhile.

Because there are exceptions, and those exceptions are just as likely to bite 
you when you least expect it, I think the os.path.join habit is a good one.

--
- Tim Roberts, [EMAIL PROTECTED]
  Providenza & Boekelheide, Inc.



_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to