News for hackers. Stuff that matters.
Re:Python's new t-strings by falcor84 on Monday April 21, 2025 @06:27AM (#43750270)
That is an issue, but essentially it boils down to the existing risk of unknowledgeable people not escaping untrusted inputs. The solution should be more education and better tooling (linters, SAST), and t-strings are likely to help with both.
Re:Python's new t-strings by masklinn on Monday April 21, 2025 @06:34AM (#43750308)
t-strings allow building APIs which don't accept strings at all (or require some sort of opt-in), and will always error on such. That's the boon.

Having to write

    cr.execute(t"...")
even when there's nothing to format in is not a big imposition.