Dennis Lee Bieber writes:

> On Wed, 25 Dec 2013 17:20:35 -0800 (PST), ru...@yahoo.com declaimed
> the following:
> 
> >  if a is None:
> >    cur.execute("Insert Into mytable(datefield) VALUES(NULL))", (,))
> 
>       I'm pretty sure that MySQLdb, at least, does not require the 
>                       , (,)
> when there are no placeholders in the SQL statement. Might even

Isn't (,) invalid syntax in itself? At least I get the exception from
writing just (,) to Python 3.

The empty tuple is denoted ().
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to