Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'syntax': 0.03; 'except:': 0.07; 'skip:/ 10': 0.07; 'subject:file': 0.07; 'python': 0.09; 'from:addr:r.koebler': 0.16; 'from:name:roland koebler': 0.16; 'help?': 0.16; 'read:': 0.16; 'received:78.47': 0.16; 'syntaxerror:': 0.16; 'url:whatsnew': 0.16; 'header:In-Reply- To:1': 0.25; 'skip:[ 10': 0.26; 'subject:end': 0.29; 'subject:some': 0.29; 'error': 0.30; 'url:python': 0.32; 'file': 0.32; 'subject: .': 0.33; 'subject:data': 0.33; 'to:addr:python- list': 0.33; 'hi,': 0.33; 'so,': 0.35; 'except': 0.36; 'but': 0.36; 'url:org': 0.36; 'charset:us-ascii': 0.36; 'subject:: ': 0.38; 'some': 0.38; 'url:docs': 0.38; 'to:addr:python.org': 0.39; 'skip:" 10': 0.40; 'subject:-': 0.40; 'content- disposition:inline': 0.60; 'url:0': 0.67 Date: Thu, 7 Mar 2013 09:58:13 +0100 From: Roland Koebler To: python-list@python.org Subject: Re: Inserting-embedding some html data at the end of a .py file 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <78e92c1d-521b-440c-9517-84406cdc6d6a@googlegroups.com> 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: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362646702 news.xs4all.nl 6901 [2001:888:2000:d::a6]:59225 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40720 Hi, > but now iam receiving this error concering except: > > nikos@superhost.gr [~/www/cgi-bin]# /usr/bin/python3 metrites.py > File "metrites.py", line 88 > except MySQLdb.Error, e: > ^ > SyntaxError: invalid syntax > nikos@superhost.gr [~/www/cgi-bin]# > > which used to work ok in v2.6.6 > > can you help? Python 3 introduced some Python 2-incompatible changes. So, please read: http://docs.python.org/release/3.0.1/whatsnew/3.0.html Roland