Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'talks': 0.03; 'exception': 0.03; 'syntax': 0.03; 'error:': 0.05; 'subject:file': 0.07; 'python': 0.09; '*is*': 0.09; 'corresponds': 0.09; 'exception,': 0.09; 'pep': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr :python-list': 0.10; 'charset:iso-8859-7': 0.15; "'%s'": 0.16; '36,': 0.16; 'bullet': 0.16; 'comma': 0.16; 'hits': 0.16; 'keyword,': 0.16; 'skip:" 100': 0.16; 'url:whatsnew': 0.16; 'wrote:': 0.17; '"you': 0.17; 'pointed': 0.17; 'thu,': 0.17; '>>>': 0.18; 'cc:2**0': 0.23; 'raise': 0.24; 'cc:no real name:2**0': 0.24; 'script': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; '(most': 0.27; 'handling': 0.27; 'replace': 0.27; 'chris': 0.28; 'subject:end': 0.29; 'subject:some': 0.29; 'value)': 0.29; 'writes:': 0.29; 'manual': 0.29; 'read,': 0.29; 'error': 0.30; 'url:python': 0.32; 'file': 0.32; 'skip:_ 30': 0.32; 'subject: .': 0.33; 'subject:data': 0.33; 'traceback': 0.33; 'point.': 0.33; 'another': 0.33; 'version': 0.34; 'received:google.com': 0.34; 'server': 0.35; 'pm,': 0.35; 'url:org': 0.36; 'thank': 0.36; 'execute': 0.37; 'subject:: ': 0.38; 'url:docs': 0.38; 'where': 0.40; 'skip:" 10': 0.40; 'subject:-': 0.40; 'think': 0.40; 'your': 0.60; 'link': 0.60; 'more': 0.63; 'offer': 0.65; 'url:0': 0.67; '4th': 0.78; '2013': 0.84; 'idiot': 0.84; '\xcc\xe1\xf1\xf4\xdf\xef\xf5': 0.84 X-Received: by 10.49.81.198 with SMTP id c6mr1741817qey.37.1362652458957; Thu, 07 Mar 2013 02:34:18 -0800 (PST) Newsgroups: comp.lang.python Date: Thu, 7 Mar 2013 02:34:18 -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> <8dbd532b-2007-46e5-9e05-e3b2597d78d9@googlegroups.com> <74843fc3-7ecd-473a-8271-c9f9d3085475@googlegroups.com> <87ppzba68d.fsf@nautilus.nautilus> 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: 84 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362652468 news.xs4all.nl 6989 [2001:888:2000:d::a6]:54185 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40745 =D4=E7 =D0=DD=EC=F0=F4=E7, 7 =CC=E1=F1=F4=DF=EF=F5 2013 12:19:05 =EC.=EC. U= TC+2, =EF =F7=F1=DE=F3=F4=E7=F2 Chris Angelico =DD=E3=F1=E1=F8=E5: > On Thu, Mar 7, 2013 at 8:50 PM, Lele Gaifax wrote: >=20 > > =CD=DF=EA=EF=F2 =C3=EA=F133=EA writes: >=20 > > >=20 > >> =D4=E7 =D0=DD=EC=F0=F4=E7, 7 =CC=E1=F1=F4=DF=EF=F5 2013 11:22:09 =F0.= =EC. UTC+2, =EF =F7=F1=DE=F3=F4=E7=F2 Lele Gaifax =DD=E3=F1=E1=F8=E5: >=20 > >>> http://docs.python.org/release/3.0.1/whatsnew/3.0.html#changed-syntax >=20 > >>> >=20 > >>> 4th (bullet) point. >=20 > >> >=20 > >> please give me the exact link to read, i cant seem to find it although >=20 > >> you send 4th bullet i do not see it.... >=20 > > >=20 > > Oh come on =CD=DF=EA=EF=F2, the above *is* the *exact* link to read, I = even >=20 > > pointed at the right subparagraph: it contains both a link to the >=20 > > reference manual for the "except" keyword, and a link to the PEP that >=20 > > talks about the change. >=20 >=20 >=20 > I think it's time to take him up on his offer to call him an idiot :) >=20 >=20 >=20 > Nikos, try 'as'. >=20 >=20 >=20 > ChrisA Thank you all the trick was to replace the comma with the 'as' script is almost ready for Python v3.2.3 now! ima just receivign this error: --> --> Traceback (most recent call last): File "/opt/python3/lib/python3.2/site-packages/MySQL_python-1.2.3-py3.2-l= inux-x86_64.egg/MySQLdb/cursors.py", line 171, in execute r =3D self._query(query) File "/opt/python3/lib/python3.2/site-packages/MySQL_python-1.2.3-py3.2-l= inux-x86_64.egg/MySQLdb/cursors.py", line 330, in _query rowcount =3D self._do_query(q) File "/opt/python3/lib/python3.2/site-packages/MySQL_python-1.2.3-py3.2-l= inux-x86_64.egg/MySQLdb/cursors.py", line 294, in _do_query db.query(q) _mysql_exceptions.ProgrammingError: (1064, "You have an error in your SQL s= yntax; check the manual that corresponds to your MySQL server version for t= he right syntax to use near '%s' at line 1") During handling of the above exception, another exception occurred: Traceback (most recent call last): File "metrites.py", line 212, in cur.execute( '''SELECT hits FROM counters WHERE url =3D %s''', (htmlpag= e,) ) File "/opt/python3/lib/python3.2/site-packages/MySQL_python-1.2.3-py3.2-l= inux-x86_64.egg/MySQLdb/cursors.py", line 184, in execute self.errorhandler(self, exc, value) File "/opt/python3/lib/python3.2/site-packages/MySQL_python-1.2.3-py3.2-l= inux-x86_64.egg/MySQLdb/connections.py", line 36, in defaulterrorhandler raise errorclass(errorvalue) _mysql_exceptions.ProgrammingError: (1064, "You have an error in your SQL s= yntax; check the manual that corresponds to your MySQL server version for t= he right syntax to use near '%s' at line 1") Tou cna see it more clearly at my website http://superhost.gr