Steve,

THANKS!  That is exactly what I was looking for but unable to find.

Joe

"Steven Bethard" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Joe wrote:
>> It appears that Python treats the comand line string as a raw string.
>>
>> what is the best way to work around the issue?
>
> You probably want to use str.decode with the encoding 'string_escape'[1]
>
> py> s = r'\n\t'
> py> s
> '\\n\\t'
> py> s.decode('string_escape')
> '\n\t'
>
> STeVe
>
> [1]http://docs.python.org/lib/standard-encodings.html 


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to