X-Received: by 10.224.72.199 with SMTP id n7mr26761498qaj.5.1362652459053; Thu, 07 Mar 2013 02:34:19 -0800 (PST) X-Received: by 10.49.81.198 with SMTP id c6mr1741817qey.37.1362652458957; Thu, 07 Mar 2013 02:34:18 -0800 (PST) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!t2no9752395qal.0!news-out.google.com!p7ni59qai.0!nntp.google.com!dd2no7952843qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail 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 NNTP-Posting-Host: 94.68.127.128 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 MIME-Version: 1.0 Message-ID: Subject: Re: Inserting-embedding some html data at the end of a .py file From: =?ISO-8859-7?B?zd/q7/Igw+rxMzPq?= Cc: python-list@python.org Injection-Date: Thu, 07 Mar 2013 10:34:18 +0000 Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable Xref: csiph.com comp.lang.python:40744 =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