News for hackers. Stuff that matters.
Re:We fixed f-string typos in popular Python repos by johnny_castaway on Friday April 29, 2022 @03:55PM (#31209915)
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

Re:We fixed f-string typos in popular Python repos by totony on Friday April 29, 2022 @05:10PM (#31210619)
Yeah I got bitten by the same-color syntax highlighting a few times.