MYSql, CGI web page search code not working
Kirk McDonald
mooquack at suad.org
Sat Jan 28 15:58:16 EST 2006
Dennis Lee Bieber wrote:
> On Sat, 28 Jan 2006 10:14:44 -0800, Kirk McDonald <mooquack at suad.org>
> declaimed the following in comp.lang.python:
>
>
>
>>The comma is intentional: the MySQLdb wants the argument(s) as a tuple.
>
>
> The DB-API wants tuples... But my last perusal of the MySQLdb Python
> code showed that it would work with naked singletons...
Ah! So it does. However, I still pass 'em as a tuple as a matter of
course, since it's documented that way. *shrug* (Also, it saves that
many keystrokes if I need to add arguments.)
-Kirk McDonald
More information about the Python-list
mailing list