Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed2.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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'syntax': 0.03; 'error:': 0.05; 'except:': 0.07; 'skip:/ 10': 0.07; 'subject:file': 0.07; 'python': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python- list': 0.10; 'charset:iso-8859-7': 0.15; 'help?': 0.16; 'read:': 0.16; 'syntaxerror:': 0.16; 'url:whatsnew': 0.16; 'written': 0.20; 'supposed': 0.21; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'skip:[ 10': 0.26; 'subject:end': 0.29; 'subject:some': 0.29; "i'm": 0.29; 'error': 0.30; 'url:python': 0.32; 'file': 0.32; 'print': 0.32; 'skip:s 30': 0.33; 'subject: .': 0.33; 'subject:data': 0.33; 'hi,': 0.33; 'received:google.com': 0.34; 'so,': 0.35; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'there': 0.35; 'except': 0.36; 'but': 0.36; 'url:org': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'url:docs': 0.38; 'skip:" 10': 0.40; 'subject:-': 0.40; 'mentioned': 0.63; 'url:0': 0.67; '2013': 0.84; '\xcc\xe1\xf1\xf4\xdf\xef\xf5': 0.84 X-Received: by 10.49.71.50 with SMTP id r18mr1449108qeu.26.1362647145762; Thu, 07 Mar 2013 01:05:45 -0800 (PST) Newsgroups: comp.lang.python Date: Thu, 7 Mar 2013 01:05:45 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=94.68.127.128; posting-account=DYJQ-woAAACEPH85Au2BhUVfFTfSfVa4 References: <7e0a8562-9a48-4f5a-804d-3751733288f0@googlegroups.com> <009ab803-6269-453b-bff1-0c58a6db358d@googlegroups.com> <0d58f312-9259-407d-b47b-80b88cf9a82c@googlegroups.com> <5bfc6644-388f-4469-a591-63fb8070faa2@googlegroups.com> <78e92c1d-521b-440c-9517-84406cdc6d6a@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 94.68.127.128 MIME-Version: 1.0 Subject: Re: Inserting-embedding some html data at the end of a .py file From: =?ISO-8859-7?B?zd/q7/Igw+rxMzPq?= To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-7 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: 45 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362647155 news.xs4all.nl 6932 [2001:888:2000:d::a6]:37821 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40722 =D4=E7 =D0=DD=EC=F0=F4=E7, 7 =CC=E1=F1=F4=DF=EF=F5 2013 10:58:13 =F0.=EC. U= TC+2, =EF =F7=F1=DE=F3=F4=E7=F2 Roland Koebler =DD=E3=F1=E1=F8=E5: > Hi, >=20 >=20 >=20 > > but now iam receiving this error concering except: >=20 > >=20 >=20 > > nikos@superhost.gr [~/www/cgi-bin]# /usr/bin/python3 metrites.py=20 >=20 > > File "metrites.py", line 88 >=20 > > except MySQLdb.Error, e: >=20 > > ^ >=20 > > SyntaxError: invalid syntax >=20 > > nikos@superhost.gr [~/www/cgi-bin]#=20 >=20 > >=20 >=20 > > which used to work ok in v2.6.6 >=20 > >=20 >=20 > > can you help? >=20 > Python 3 introduced some Python 2-incompatible changes. >=20 > So, please read: http://docs.python.org/release/3.0.1/whatsnew/3.0.html >=20 >=20 >=20 > Roland I did read about print but i'm interesetd to see and its not mentioned ther= e how except MySQLdb.Error, e: print ( "Query Error: ", sys.exc_info()[1].excepinfo()[2] ) is supposed to be written as in Python v3.x