Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'raises': 0.09; '-tkc': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'iterable,': 0.16; 'reedy': 0.16; 'sqlite': 0.16; 'subject:sqlite3': 0.16; 'tuple': 0.16; 'exception': 0.16; 'wrote:': 0.18; 'work,': 0.20; 'subject:problem': 0.24; 'header :In-Reply-To:1': 0.27; 'code': 0.31; 'easier': 0.31; 'subject: (': 0.35; 'subject:with': 0.35; 'but': 0.35; 'version': 0.36; 'charset :us-ascii': 0.36; 'list': 0.37; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'even': 0.60; 'received:50.22': 0.84 Date: Thu, 23 Jan 2014 06:36:34 -0600 From: Tim Chase To: python-list@python.org Subject: Re: sqlite3 docbug (was problem with sqlite3) In-Reply-To: References: <52e07f45$0$3631$426a34cc@news.free.fr> <1f13ee0c-5cb5-4627-9f38-2058a8235083@googlegroups.com> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OutGoing-Spam-Status: No, score=-1.5 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - boston.accountservergroup.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tim.thechases.com X-Get-Message-Sender-Via: boston.accountservergroup.com: authenticated_id: tim@thechases.com X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1390480547 news.xs4all.nl 2902 [2001:888:2000:d::a6]:54621 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:64600 On 2014-01-23 05:43, Terry Reedy wrote: > A list instead of a tuple does work, but not an iterable, so > 'sequence'. In the OP's case using sqlite drivers, this is true. However, I maintain some old 2.4 code that uses a correspondingly ancient version of mx.ODBC which requires a tuple and raises an exception on any other iterable. So I always use a tuple out of habit, even if it would be easier to just use some other iterable. -tkc