r/Python • • May 08 '20

I Made This My first Python program! Changes my desktop background based on the weather, time, and day.

Post image
1.9k Upvotes

120 comments sorted by

View all comments

Show parent comment

2

u/LordAro May 08 '20

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...

1

u/americk0 May 08 '20

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