[Python-3000] programmable syntax (was ... #4: interpolated strings ala perl)
Greg Ewing
greg.ewing at canterbury.ac.nz
Tue Dec 12 00:50:01 CET 2006
Jim Jewett wrote:
> def foo(d: sqlDriver):
> s = SQLTemplate("select template goes here", args=(param1, param2))
> r = d.query(s)
I know it's just an example, but SQL really isn't the
best thing to be talking about here, because you
should be using parameterised queries instead of
quoting when dealing with SQL.
--
Greg
More information about the Python-3000
mailing list