logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: None values in a tuple: msg#00025

Subject: Re: None values in a tuple

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 
:)


<Prev in Thread] Current Thread [Next in Thread>