not really. the main advantage of bound variables is to get automatic
quoting; PEP 292 only specifies an alternative syntax (that we cannot
use anyway, because it is not in DBAPI.)
I like the fact that the %(name)i will raise an exception if I screw up
and give it a string. Several times it helped me find bugs. This is better
than silent casting.
Where are the docs for the format specifiers by the way ? I know of %()s
and %()i, but some time ago I wanted the code for a Boolean and could not
find it.
Also thanks a lot to the author, psycopg really is the fastest and best
:)
|