[Python-3000] programmable syntax (was ... #4: interpolated strings ala perl) (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Tue Dec 12 00:50:01 CET 2006
- Previous message: [Python-3000] programmable syntax (was ... #4: interpolated strings ala perl)
- Next message: [Python-3000] Implementations: A syntax for extending method dispatching beyond type/class inheritance
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-3000] programmable syntax (was ... #4: interpolated strings ala perl)
- Next message: [Python-3000] Implementations: A syntax for extending method dispatching beyond type/class inheritance
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]