Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #64581

Re: sqlite3 docbug (was problem with sqlite3)

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'source,': 0.04; 'handler': 0.05; 'part,': 0.09; 'cc:addr:python-list': 0.11; 'jan': 0.12; '23,': 0.16; 'arg,': 0.16; 'argument.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'iterable': 0.16; 'iterator': 0.16; 'optional': 0.16; 'subject:sqlite3': 0.16; 'tuple.': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'thu,': 0.19; 'examples': 0.20; 'later': 0.20; 'cc:addr:python.org': 0.22; 'subject:problem': 0.24; 'looks': 0.24; 'cc:2**0': 0.24; 'handling': 0.26; 'second': 0.26; 'header:In-Reply-To:1': 0.27; 'on,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'skip:( 20': 0.30; 'work.': 0.31; 'asks': 0.31; 'figure': 0.32; "i'd": 0.34; 'subject: (': 0.35; 'subject:with': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'las': 0.37; 'skip:& 10': 0.38; 'pm,': 0.38; 'rather': 0.38; 'most': 0.60; "you're": 0.61; 'goto': 0.84; 'error;': 0.91; 'to:none': 0.92
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=S9ACd8j7D1J1BC1HsFnkLLdFkhpuLpCA4+kHVrvA5dM=; b=rW6IyXcdPWnEdBHVPPjERLfwbSbepZUscV/d/Cj9PMXXAO5Rv4RTmVfO7cnyhGXixa xVwZehbDo3rP7TzJE1OighE5mkrun/Au+kTRtkTxhqd0qDBJJxBz7jNrh43uslcd/fUq P0CZHQ4xDuNxZe/sY7bYqrPeUBv7jwMdEcc8Ovn3WyJIrA8Y6mxWxeaetMtcH+xYczX4 6zw5C368kDyu7J79rh9ZxFf0nSvS7ZKK+tBc2/foD8cU9Q8devs1tMqIEaH1FNBcnIrm Hk0ADhIz8rRlvPnmasIBsxr9GIebN5BzgHWPluUah5VzXgRIQ97Aw/AjbUA82TsBs0rk 6TfQ==
MIME-Version 1.0
X-Received by 10.66.160.2 with SMTP id xg2mr6489154pab.23.1390463255929; Wed, 22 Jan 2014 23:47:35 -0800 (PST)
In-Reply-To <408998ad-918d-454c-b37e-41921cdd0e3d@googlegroups.com>
References <52e07f45$0$3631$426a34cc@news.free.fr> <mailman.5864.1390446316.18130.python-list@python.org> <d8243c7c-8d9c-4ef6-8842-2fe856633a4e@googlegroups.com> <mailman.5870.1390452106.18130.python-list@python.org> <408998ad-918d-454c-b37e-41921cdd0e3d@googlegroups.com>
Date Thu, 23 Jan 2014 18:47:35 +1100
Subject Re: sqlite3 docbug (was problem with sqlite3)
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.5875.1390463259.18130.python-list@python.org> (permalink)
Lines 16
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1390463259 news.xs4all.nl 2909 [2001:888:2000:d::a6]:60710
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:64581

Show key headers only | View raw


On Thu, Jan 23, 2014 at 6:18 PM, Asaf Las <roegltd@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

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

problem with sqlite3: cannot use < in a SQL query with (?) lgabiot <lgabiot@hotmail.com> - 2014-01-23 03:32 +0100
  Re: problem with sqlite3: cannot use < in a SQL query with (?) lgabiot <lgabiot@hotmail.com> - 2014-01-23 03:34 +0100
  Re: problem with sqlite3: cannot use < in a SQL query with (?) Chris Angelico <rosuav@gmail.com> - 2014-01-23 13:42 +1100
  Re: problem with sqlite3: cannot use < in a SQL query with (?) bob gailer <bgailer@gmail.com> - 2014-01-22 21:51 -0500
  Re: problem with sqlite3: cannot use < in a SQL query with (?) bob gailer <bgailer@gmail.com> - 2014-01-22 21:51 -0500
  Re: problem with sqlite3: cannot use < in a SQL query with (?) Tim Chase <python.list@tim.thechases.com> - 2014-01-22 21:05 -0600
    sqlite3 docbug (was problem with sqlite3) Rustom Mody <rustompmody@gmail.com> - 2014-01-22 20:33 -0800
      Re: sqlite3 docbug (was problem with sqlite3) Rustom Mody <rustompmody@gmail.com> - 2014-01-22 20:37 -0800
      Re: sqlite3 docbug (was problem with sqlite3) Chris Angelico <rosuav@gmail.com> - 2014-01-23 15:41 +1100
        Re: sqlite3 docbug (was problem with sqlite3) Rustom Mody <rustompmody@gmail.com> - 2014-01-22 21:35 -0800
          Re: sqlite3 docbug (was problem with sqlite3) Chris Angelico <rosuav@gmail.com> - 2014-01-23 16:42 +1100
            Re: sqlite3 docbug (was problem with sqlite3) lgabiot <lgabiot@hotmail.com> - 2014-01-23 08:37 +0100
              Re: sqlite3 docbug (was problem with sqlite3) Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-23 09:04 +0000
                Re: sqlite3 docbug (was problem with sqlite3) lgabiot <lgabiot@hotmail.com> - 2014-01-23 10:45 +0100
                Re: sqlite3 docbug (was problem with sqlite3) Rustom Mody <rustompmody@gmail.com> - 2014-01-23 02:23 -0800
                Re: sqlite3 docbug (was problem with sqlite3) lgabiot <laurent.gabiot@gmail.com> - 2014-01-23 10:45 +0100
            Re: sqlite3 docbug (was problem with sqlite3) lgabiot <laurent.gabiot@gmail.com> - 2014-01-23 08:37 +0100
          Re: sqlite3 docbug (was problem with sqlite3) Terry Reedy <tjreedy@udel.edu> - 2014-01-23 05:43 -0500
            Re: sqlite3 docbug (was problem with sqlite3) Rustom Mody <rustompmody@gmail.com> - 2014-01-23 07:00 -0800
          Re: sqlite3 docbug (was problem with sqlite3) Tim Chase <python.list@tim.thechases.com> - 2014-01-23 06:36 -0600
          Re: sqlite3 docbug (was problem with sqlite3) Terry Reedy <tjreedy@udel.edu> - 2014-01-23 20:03 -0500
        Re: sqlite3 docbug (was problem with sqlite3) Asaf Las <roegltd@gmail.com> - 2014-01-22 23:18 -0800
          Re: sqlite3 docbug (was problem with sqlite3) Chris Angelico <rosuav@gmail.com> - 2014-01-23 18:47 +1100

csiph-web