Raw Strings!

Anders Moe andermoe at online.no
Wed Jun 16 15:59:54 EDT 1999


SunitJoshi wrote:

> Hi All
>         If someone could show me how to use raw-strings with variables, I
> would really appreciate it.
>         For e.g.: if str_path = "C:\\windows\\temp"
>
> thanks
> Sunit

Since I suspect you have path-strings like the above in mind, may I suggest
simply
using forward slashes - they will work on win98. Else I recommend using
'os.sep'.

Anders Moe





More information about the Python-list mailing list