News for hackers. Stuff that matters.
Re:Show HN: Sqlbind a Python library to compose raw SQL by hombre_fatal on Monday February 26, 2024 @02:18PM (#39515680)
I don’t use Python so can’t be bothered to read the source but the general solution here is to make regular string interpolation fail.

e.g. You must use the Q mechanism and doesn’t work if you forget it.

Re:Show HN: Sqlbind a Python library to compose raw SQL by dougk on Monday February 26, 2024 @02:20PM (#39515695)
f-strings are part of the language so you need to change the interpreter to make that fail. That will not play nice with the rest of the codebase.