Re: How to split with "\" character, and licence copyleft mirror of �

Terry Reedy tjreedy at udel.edu
Fri Sep 6 02:15:50 EDT 2013


On 9/5/2013 11:33 PM, Tim Roberts wrote:
> random832 at fastmail.us wrote:
>>
>> Of course, in 99% of situations where you can use a windows pathname in
>> Python, you are free to use it with a forward slash instead of a
>> backslash.
>
> This is actually worth repeating, because it's not well known.
>
> ALL Windows APIs handle forward and backward slashes interchangably.  It is
> only the command interpreter that requires the backslash.

and only for the path the the command, when needed, and not for the 
arguments of the command. Example, in a python development directory

 > pcbuild\python_d tools/scripts/patchcheck.py

-- 
Terry Jan Reedy




More information about the Python-list mailing list