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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'error:': 0.07; 'python3': 0.07; 'clause': 0.09; 'except:': 0.09; 'to:addr:comp.lang.python': 0.09; 'try:': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'doesnt': 0.16; 'exception': 0.16; 'cc:addr:python.org': 0.22; 'print': 0.22; 'header:User-Agent:1': 0.23; 'errors.': 0.24; "haven't": 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'switch': 0.26; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'statement': 0.30; 'exceptions': 0.31; 'raised': 0.31; 'probably': 0.32; 'programmers': 0.33; 'maybe': 0.34; 'received:209.85': 0.35; 'skip:s 30': 0.35; 'received:google.com': 0.35; '2.6': 0.36; 'subject:?': 0.36; 'received:209': 0.37; 'subject:. ': 0.67; 'novice': 0.91 X-Received: by 10.49.85.165 with SMTP id i5mr1568653qez.28.1364408820306; Wed, 27 Mar 2013 11:27:00 -0700 (PDT) Newsgroups: comp.lang.python Date: Wed, 27 Mar 2013 11:27:00 -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> 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 Content-Transfer-Encoding: quoted-printable 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1364409562 news.xs4all.nl 6932 [2001:888:2000:d::a6]:55539 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:42025 =3D> 187 print ( "Query Error: ", sys.exc_info()[1].excepi= nfo()[2]) excepinfo is probably mis-spelled---I have no idea what you intend.l Python3 raised exceptions in an except: clause giving the double exception = message that I don't think you'd have seen in python2. Maybe the purpose is= to help novice python programmers who haven't learned to make try: except:= clause trap a specific statement looking for specific Errors. Maybe this line which iuses to work in python 2.6 doesnt in python 3.2.3 ? do i have to switch it to soemthing else?