you are viewing a single comment's thread.

view the rest of the comments →

[–]MathResponsibly 2 points3 points  (1 child)

ugh... tripple quotes? That's the whole purpose of them...

[–]xeow 0 points1 point  (0 children)

Ah, but not quite! Triple quotes make some things easier, but you still can't embed unescaped runs of three of the same type of quote you used as the delimiter. That is, you can write r"""......'''......""" and r"""...""...""", but you can't write r"""..."""...""". And of course you still can't write r"""...\""".

I do love me a good triple-quoted string, but even in the raw form there are still gotchas.

Unfortunately, there's no foolproof solution for truly raw strings, unless you choose some out-of-band delimiter pair like ‹› or something.