Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eweka.nl!lightspeed.eweka.nl!194.134.4.91.MISMATCH!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.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'latter': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; "'%s'": 0.16; 'hits': 0.16; 'subject:run': 0.16; 'command': 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; 'header:In-Reply-To:1': 0.27; '3.x': 0.31; 'received:209.85': 0.35; 'but': 0.35; 'received:google.com': 0.35; '2.6': 0.36; 'received:209.85.216': 0.37; 'received:209': 0.37; 'does': 0.39; 'dont': 0.67 X-Received: by 10.49.81.198 with SMTP id c6mr1643973qey.37.1364443691615; Wed, 27 Mar 2013 21:08:11 -0700 (PDT) Newsgroups: comp.lang.python Date: Wed, 27 Mar 2013 21:08:11 -0700 (PDT) In-Reply-To: <2ac959c6-d169-452f-b622-83fe25fbd8da@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=94.68.83.207; posting-account=DYJQ-woAAACEPH85Au2BhUVfFTfSfVa4 References: <2ac959c6-d169-452f-b622-83fe25fbd8da@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: Cannot run a single MySQLdb execute.... 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: 9 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1364446314 news.xs4all.nl 6923 [2001:888:2000:d::a6]:39400 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:42098 If you mean if iam using '?' or this '%s' the latter used to work flawlessly with python 2.6 but it does not in pythin 3.2.3 both this command fail in python 3.x cur.execute( '''SELECT hits FROM counters WHERE url = ?''', (page,) ) cur.execute( '''SELECT hits FROM counters WHERE url = %s''', (page,) ) i dont have a clue why....