News for hackers. Stuff that matters.
Re:Python's new t-strings by hombre_fatal on Tuesday April 22, 2025 @11:35AM (#43763414)
No, a t-string returns a Template which is basically { strings: str[], values: any[] }.

So you would write db.execute(template) to turn template t"... where id = {id}" into a parameterized structure like ("... where id = ?", id).

There are no comments on this comment yet.