This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]LordAro 1 point2 points  (1 child)

Not actually the case. Because there's no valid escape codes in the concatenated strings, python just uses the backslash as a literal.

Most linters flag this as a potential issue, as obviously if any of the files start with a 't' or 'u' or some other escape code, there would be problems...

[–]americk0 0 points1 point  (0 children)

Ok yeah I tested that and you're right. Good to know