Substitution with Hash Values
Terry Reedy
tejarex at yahoo.com
Mon Apr 22 15:26:44 EDT 2002
"Jeff Shannon" <jeff at ccvcorp.com> wrote in message
news:MPG.172df6156ea0ac7c9896bd at news.nwlink.com...
> Then you probably use a unixoid OS. ;) Since Windows uses \ as
> a path separator, any Windows path strings tend to have lots of
> \'s in them, and are thus good candidates for using raw strings.
Since Windows also allows / as a path separator both in the Start/Run
box and for API calls such as the one wrapped by open(), neither
r'string' nor \\ is really necessary for paths anymore than in *nix
(unless you are planning to display them to users for entry on a MSDOS
command line).
Terry J. Reedy
More information about the Python-list
mailing list