4 ms·
This may be also caused by confusing syntax highlighting in some editors, for example in VSCode [1] The variable in the second string gets highlighted (with sl
by johnny_castaway 4y ago
This may be also caused by confusing syntax highlighting in some editors, for example in VSCode [1]
The variable in the second string gets highlighted (with slightly different color, but still) because it would still work with `str.format()`. GitHub doesn't seem to do this.
[1] https://imgur.com/a/9KGWVG0 https://imgur.com/a/9KGWVG0
- totony 4y agoYeah I got bitten by the same-color syntax highlighting a few times.