How is this advantageous over str.format?
How is this advantageous over str.format?
Posted Jan 28, 2025 11:47 UTC (Tue) by taladar (subscriber, #68407)In reply to: How is this advantageous over str.format? by epa
Parent article: A revamped Python string-formatting proposal
SQL in particular might not be the best use case, not only are there statements you can create with string interpolation that can't be handled by parameter binding (e.g. anything that changes the structure of the statement), preparing statements also has other performance benefits over ad-hoc queries.
