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.036 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'operator': 0.03; 'charset:iso-8859-7': 0.04; 'python': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'hits': 0.16; 'newsgroup.': 0.16; 'precedence': 0.16; 'do,': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'decide': 0.24; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'that.': 0.31; '3.2': 0.31; 'figure': 0.32; 'url:python': 0.33; 'received:209.85': 0.35; 'received:209.85.220': 0.35; 'received:google.com': 0.35; 'subject:?': 0.36; 'url:org': 0.36; 'list': 0.37; 'received:209': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'expression': 0.60; 'url:3': 0.61; 'subject:. ': 0.67; 'mar': 0.68; 'yourself': 0.78; 'url:reference': 0.84; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=RYkhLvz+yJFDdcWp6OPdA3Xw+0KSXCn/NR608tuf/Xk=; b=M1FxbKzBTM7wQv8/J0QVaaC0n9t94EkQA1wA9zDM0T1oRpxfBZQBal02/AtrXcPnY9 WBkZ63JHgvVg7RflD1i2V+uyDdyvlV+pi4DBNWqBif7YsaLgjnD3jl5IiVbsO7yTdUDa SIMvubL/BOBmaiwL0D4C3DbZpzu7SMJjqx4Sx+vykVzflR0OiMne4kzjo2M4DQUZ0Fcv x42jTYwV3gZNXLOp7zseqx2+/nvHPYjFqNiMHn4Gdn1NsH1XUfoAW1zEAxnuAdweEUuV UtPtzIDNNt1mbGXq7e4iTu3zBLnpQk0pZoxZnHPy0IUKzXaloHACPIgBiUumTpyox7Qj FZ+w== MIME-Version: 1.0 X-Received: by 10.52.16.211 with SMTP id i19mr5133175vdd.91.1364437880711; Wed, 27 Mar 2013 19:31:20 -0700 (PDT) In-Reply-To: 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> Date: Thu, 28 Mar 2013 13:31:20 +1100 Subject: Re: MySQLdbd error. Perhpas it isn't installed? From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1364437887 news.xs4all.nl 6913 [2001:888:2000:d::a6]:35732 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:42064 On Thu, Mar 28, 2013 at 1:19 PM, =CD=DF=EA=EF=F2 =C3=EA=F133=EA wrote: > The following works in python 3.2 > > [code] > cur.execute( '''SELECT hits FROM counters WHERE url =3D ?''') , (= page,) > [/code] This is an email list and newsgroup. You don't need tags like that. I don't know what you mean by "works". Check out the operator precedence ta= ble: http://docs.python.org/3.3/reference/expressions.html#operator-precedence Figure out what the above expression will do, then decide for yourself whether page is having any effect on it. ChrisA