This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author larry
Recipients benjamin.peterson, georg.brandl, larry
Date 2014-01-15.20:24:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1389817483.8.0.407525727046.issue20274@psf.upfronthosting.co.za>
In-reply-to
Content
The code in Modules/_sqlite/connection.c is sloppy.

The functions pysqlite_connection_execute, pysqlite_connection_executemany, and pysqlite_connection_executescript accept a third "PyObject *kwargs".  However none of these functions are marked METH_KEYWORD.  This only works because the kwargs parameter is actually ignored--the functions only support positional-only arguments.  Obviously the "PyObject *kwargs" parameters should be removed for these three functions.

A slightly more advanced problem: pysqlite_connection_call, which implements sqlite3.Connection.__call__(), ignores its kwargs parameter completely.  If it doesn't accept keyword parameters it should at least complain if any are passed in.

Georg: you want this fixed in 3.3?  3.2?
Benjamin: you want this fixed in 2.7?
History
Date User Action Args
2014-01-15 20:24:43larrysetrecipients: + larry, georg.brandl, benjamin.peterson
2014-01-15 20:24:43larrysetmessageid: <1389817483.8.0.407525727046.issue20274@psf.upfronthosting.co.za>
2014-01-15 20:24:43larrylinkissue20274 messages
2014-01-15 20:24:43larrycreate