On Feb 25, 6:03 pm, "OKB (not okblacke)"
<[EMAIL PROTECTED]> wrote:
>
>         I too encountered this problem, in the same situation (making
> strings that contain LaTeX commands).  One possibility is to separate
> out just the bit that has the \u, and use string juxtaposition to attach
> it to the others:
>
> s = ur"añado " u"$\\uparrow$"
>
>         It's not ideal, but I think it's easier to read than your solution
> #2.
>

Yes, I think I will do something like that, although... I really do
not understand why \x5c is not interpreted in a raw string but \u005c
is interpreted  in a unicode raw string... is, well, not elegant. Raw
should be raw...

Thanks anyway

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

Reply via email to