Bad raw string handling, string ends with backslash

Terry Reedy tjreedy at udel.edu
Tue May 27 18:04:32 EDT 2003


"Wolfgang" <wl at flexis.de> wrote in message
news:bava04$6ap$1 at news.lf.net...
> I have to do this:
>
> xyz = r"T:\bin\bla" + "\\"

If this is for accessing directories or files on WindowsXXX,
xyz = "T:/bin/bla/"
may work (it does for me with Win9X for os.chdir() and file())

Terry J. Reedy






More information about the Python-list mailing list