Path: csiph.com!usenet.pasdenom.info!news.albasani.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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'syntax': 0.03; 'except:': 0.07; 'skip:/ 10': 0.07; 'subject:file': 0.07; 'python': 0.09; "'''": 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python- list': 0.10; 'charset:iso-8859-7': 0.15; 'help?': 0.16; 'log.': 0.16; 'syntaxerror:': 0.16; 'shell': 0.18; 'cc:2**0': 0.23; 'work.': 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; 'run': 0.28; 'subject:end': 0.29; 'subject:some': 0.29; 'error': 0.30; 'file': 0.32; 'print': 0.32; 'function.': 0.33; 'subject: .': 0.33; 'subject:data': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'except': 0.36; 'michael': 0.36; 'but': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'skip:" 10': 0.40; 'subject:-': 0.40; 'your': 0.60; '2013': 0.84; '\xcc\xe1\xf1\xf4\xdf\xef\xf5': 0.84 X-Received: by 10.49.24.164 with SMTP id v4mr3252124qef.6.1362638112403; Wed, 06 Mar 2013 22:35:12 -0800 (PST) Newsgroups: comp.lang.python Date: Wed, 6 Mar 2013 22:35:12 -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> 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: 48 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362638120 news.xs4all.nl 6935 [2001:888:2000:d::a6]:34433 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40707 =D4=E7 =D0=DD=EC=F0=F4=E7, 7 =CC=E1=F1=F4=DF=EF=F5 2013 2:25:09 =F0.=EC. UT= C+2, =EF =F7=F1=DE=F3=F4=E7=F2 Michael Ross =DD=E3=F1=E1=F8=E5: > Either run /usr/bin/python3 /cgi-bin/metrites.py on the shell=20 > or better look in your webserver error log. > Guess: > In Python 3 "print" is a function.=20 > So > print "something" > will not work. You need to >=20 > print("something") Yes Michael i have already prinr with parenthesis except form the triple qu= oting:=09 print '''

LOG =FC=EB=F9=ED =F4=F9= =ED HTML =F3=E5=EB=DF=E4=F9=ED


''' have turned to: print('''

LOG =FC=EB=F9=ED =F4=F9= =ED HTML =F3=E5=EB=DF=E4=F9=ED


=D3=E5=EB=DF=E4=E1 =C5=F0=E9=F3=EA=DD=F8=E5=E9=F2
''') but now iam receiving this error concering except: nikos@superhost.gr [~/www/cgi-bin]# /usr/bin/python3 metrites.py=20 File "metrites.py", line 88 except MySQLdb.Error, e: ^ SyntaxError: invalid syntax nikos@superhost.gr [~/www/cgi-bin]#=20 which used to work ok in v2.6.6 can you help?
=D3=E5=EB=DF=E4=E1 =C5=F0=E9=F3=EA=DD=F8=E5=E9=F2