sqlite3 docbug (was problem with sqlite3)
Chris Angelico
rosuav at gmail.com
Thu Jan 23 02:47:35 EST 2014
On Thu, Jan 23, 2014 at 6:18 PM, Asaf Las <roegltd at gmail.com> wrote:
> if (!PyArg_ParseTuple(args, "OO", &operation, &second_argument)) {
> goto error;
> }
That part just asks for "any object" as the second argument. Also,
that part is handling executemany(). Later on, the execute() handler
looks for an optional second arg, and then looks for an iterator from
it.
But as a general rule, I'd advise reading the docs rather than the
source, unless you're trying to figure out whether some other iterable
will work. For the most part, just follow the examples and use a
tuple.
ChrisA
More information about the Python-list
mailing list