file open fails.

Scott David Daniels Scott.Daniels at Acm.Org
Wed Mar 25 23:05:36 CET 2009


afriere at yahoo.co.uk wrote:
> Wouldn't it be easier just to avoid the windows slashes altogether and
> stick to the posix:
> 
> title = 'c:/thesis/refined_title.txt'
Well, yes in a way, but lots of places in windows you can get a copy
of a full file spec into the cut buffer, so you cut/paste rather than
type.  If you do that, you get the backslashes (and you better be
prepared for that by using r'' to paste into).

--Scott David Daniels
Scott.Daniels at Acm.Org



More information about the Python-list mailing list