Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.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; 'error:': 0.05; 'subject:file': 0.07; 'python': 0.09; 'received:151': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'better:': 0.16; 'emanuele': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'url:whatsnew': 0.16; 'written': 0.20; 'supposed': 0.21; 'header:User-Agent:1': 0.26; 'header:X -Complaints-To:1': 0.28; 'subject:end': 0.29; 'subject:some': 0.29; 'writes:': 0.29; "i'm": 0.29; 'url:python': 0.32; 'print': 0.32; 'skip:s 30': 0.33; 'subject: .': 0.33; 'subject:data': 0.33; 'to:addr:python-list': 0.33; 'point.': 0.33; 'there': 0.35; 'received:org': 0.36; 'except': 0.36; 'but': 0.36; 'url:org': 0.36; 'subject:: ': 0.38; 'url:docs': 0.38; 'to:addr:python.org': 0.39; 'subject:-': 0.40; 'header:Received:5': 0.40; 'mentioned': 0.63; 'url:0': 0.67; '4th': 0.78; 'quando': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Lele Gaifax Subject: Re: Inserting-embedding some html data at the end of a .py file Date: Thu, 07 Mar 2013 10:22:09 +0100 Organization: Nautilus Entertainments 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> <8dbd532b-2007-46e5-9e05-e3b2597d78d9@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: 151.62.77.145 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:LgGe0pgZKEl3o2/bOiyBWQHnoZw= 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: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362648141 news.xs4all.nl 6969 [2001:888:2000:d::a6]:50624 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40725 Νίκος Γκρ33κ writes: > I did read about print but i'm interesetd to see and its not mentioned there how > > except MySQLdb.Error, e: > print ( "Query Error: ", sys.exc_info()[1].excepinfo()[2] ) > > is supposed to be written as in Python v3.x Read better: http://docs.python.org/release/3.0.1/whatsnew/3.0.html#changed-syntax 4th (bullet) point. ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. lele@metapensiero.it | -- Fortunato Depero, 1929.