Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.mixmin.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.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.047 X-Spam-Evidence: '*H*': 0.91; '*S*': 0.00; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'random': 0.14; "'%s'": 0.16; 'better?': 0.16; 'hits': 0.16; 'seems': 0.21; '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.2': 0.31; 'file': 0.32; 'open': 0.33; 'received:209.85': 0.35; 'received:google.com': 0.35; 'there': 0.35; '2.6': 0.36; 'subject:?': 0.36; 'received:209': 0.37; 'subject:. ': 0.67; 'between': 0.67; 'line,': 0.68; 'look.': 0.84; 'why?': 0.91 X-Received: by 10.49.41.65 with SMTP id d1mr1600478qel.11.1364437167246; Wed, 27 Mar 2013 19:19:27 -0700 (PDT) Newsgroups: comp.lang.python Date: Wed, 27 Mar 2013 19:19:27 -0700 (PDT) In-Reply-To: <64b1d68a-7cc2-4039-b550-7f4970442aec@googlegroups.com> 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1364437811 news.xs4all.nl 6878 [2001:888:2000:d::a6]:34055 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:42063 The following works in python 3.2 [code] cur.execute( '''SELECT hits FROM counters WHERE url = ?''') , (page,) [/code] is there a difefrence between the above and the follwong which works in python 2.6 [code] cur.execute( '''SELECT hits FROM counters WHERE url = ?''' , (page,) ) [/code] Also whats better? use '%s' or '?' and why? I'am confused. Which one is the correct? Also now http://superhost.gr seems to stuck in the following line which i try to open an acii file to slect a random line, please take a look.