Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.035 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.11; 'hits': 0.16; 'objects.': 0.16; 'tuple': 0.16; '>>>': 0.22; 'cc:addr:python.org': 0.22; 'header :User-Agent:1': 0.23; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'second': 0.26; 'header:In-Reply-To:1': 0.27; 'received:209.85': 0.35; 'received:google.com': 0.35; 'method': 0.36; 'subject:?': 0.36; 'two': 0.37; 'received:209': 0.37; 'called': 0.40; 'first': 0.61; 'subject:. ': 0.67 X-Received: by 10.49.72.225 with SMTP id g1mr1116554qev.36.1364437445549; Wed, 27 Mar 2013 19:24:05 -0700 (PDT) Newsgroups: comp.lang.python Date: Wed, 27 Mar 2013 19:24:05 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=94.68.83.207; posting-account=DYJQ-woAAACEPH85Au2BhUVfFTfSfVa4 References: <9c01c631-77e8-4104-ae1f-5cccfaaea10d@googlegroups.com> <22f50ec2-7d20-47af-a793-5cf801b6a23e@googlegroups.com> <515322EC.9080602@mrabarnett.plus.com> <64b1d68a-7cc2-4039-b550-7f4970442aec@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 94.68.83.207 MIME-Version: 1.0 Subject: Re: MySQLdbd error. Perhpas it isn't installed? From: =?ISO-8859-7?B?zd/q7/Igw+rxMzPq?= To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list@python.org 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: , Message-ID: Lines: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1364437448 news.xs4all.nl 6855 [2001:888:2000:d::a6]:54498 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:42061 I think i have figured this out: cur.execute( '''SELECT hits FROM counters WHERE url = %s''') , (page,) is a tuple of two objects. The first is the result of cur.execute( '''SELECT hits FROM counters WHERE url = %s''') and the second is (page,) cur.execute( '''SELECT hits FROM counters WHERE url = %s''' , (page,) ) is the result of the execute method of the cur object called with two arguments. >>> int('10010110101', 2) 1205 >>> int('10010110101'), 2 (10010110101, 2) >>> Is this correct?