Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin.stu.neva.ru!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.026 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'output': 0.04; 'python': 0.09; 'cc:addr:python-list': 0.10; 'subject:error': 0.11; 'subject:python': 0.11; '.py': 0.16; 'sees': 0.16; 'subject:when': 0.16; 'wrote:': 0.17; 'fix': 0.17; 'thu,': 0.17; 'email addr:gmail.com>': 0.20; '2.x': 0.22; 'cc:2**0': 0.23; 'this:': 0.23; 'header': 0.24; 'cc:addr:python.org': 0.25; 'header:In- Reply-To:1': 0.25; 'appear': 0.26; 'am,': 0.27; 'message- id:@mail.gmail.com': 0.27; 'fixed': 0.28; 'fine': 0.28; 'cgi': 0.29; 'url:mailman': 0.29; 'skip:& 10': 0.29; 'source': 0.29; 'stuff': 0.30; 'code': 0.31; 'server.': 0.32; 'url:python': 0.32; 'file': 0.32; 'print': 0.32; 'url:listinfo': 0.32; "can't": 0.34; 'received:google.com': 0.34; 'pm,': 0.35; 'there': 0.35; 'except': 0.36; 'url:org': 0.36; 'subject:: ': 0.38; 'files': 0.38; 'page': 0.38; 'skip:" 10': 0.40; 'help': 0.40; 'url:mail': 0.40; 'your': 0.60; 'first': 0.61; 'more': 0.63; 'differences': 0.65; 'click': 0.76; '2013': 0.84; 'text/html;': 0.84; 'joel': 0.91; 'this!': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=YSlxoCTbjWgvBuLe/FzOJ+Vp1Lwk0+vU5IpghT6sJnk=; b=ydsGludpylbgYuaMIjup1rxjW4wAn8xCYrdfRV6v0mtB/AonZzNfwVBzoA1+trEgNO WqT5zkwWguXvO0/7IUBbbfSkcpii9IjdbCysnt8FoeQj4+ypV2YnKyO2vfSxe3i2zkMg 3H5snl0Ju2UTYUAQBjlIfNO00cZxErNdKkyVIsVSsFGD4t6m+T9z7qliTR38goLv1zOS RX4UFvfUNFBGz/Hes7FbIMYvpSNqoal9kO5txLlwmDP8iKjZO3Qyy3sxi0Qxl87f2JFn 7D/xZYLOIOqp843biEDGpEOPJJf0Nw0pFAI674dAQlsavpA5bFMbV2jYkS5Jg5k4VeQG gqDA== MIME-Version: 1.0 X-Received: by 10.52.19.200 with SMTP id h8mr11572716vde.60.1362682235533; Thu, 07 Mar 2013 10:50:35 -0800 (PST) In-Reply-To: References: <8e17232e-5b24-4040-9215-c4bd89f34fa2@googlegroups.com> <622d4a2d-0014-4254-b211-c8fd66510f74@googlegroups.com> <4e3c3750-605f-4d91-af21-a1c22d89912f@googlegroups.com> Date: Thu, 7 Mar 2013 13:50:35 -0500 Subject: Re: An error when i switched from python v2.6.6 => v3.2.3 From: Joel Goldstick To: =?UTF-8?B?zp3Or866zr/PgiDOk866z4EzM866?= Content-Type: multipart/alternative; boundary=20cf307ca04c976cad04d75a2eac 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: , Newsgroups: comp.lang.python Message-ID: Lines: 118 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362682239 news.xs4all.nl 6855 [2001:888:2000:d::a6]:34095 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40808 --20cf307ca04c976cad04d75a2eac Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, Mar 7, 2013 at 12:41 PM, Joel Goldstick w= rote: > > > > On Thu, Mar 7, 2013 at 11:22 AM, =CE=9D=CE=AF=CE=BA=CE=BF=CF=82 =CE=93=CE= =BA=CF=8133=CE=BA wrote: > >> I have fixed this! >> Still ahve allok and you will see that in both of my images they appear >> in the firstpage of superhost.gr >> >> the output of .py files appear fine except of that ehen a visitor click >> on my first 2 image links he also sees as first line this: >> >> print ( "Content-type: text/html; charset=3Dutf-8\n" ) >> >> this is because the above code is a header and its contained to every cg= i >> .py file that i generate html ouput from via os.system() >> >> Can this be somehow eliminated? >> > This may have to do with the configuration of your server. There may be differences in how to do that for python 2.x and python 3.x. I can't help you more than that > -- >> > > That page is not valid html. View the source in your browser to see -- i= t > has no tag, no , no . fix that stuff > >> http://mail.python.org/mailman/listinfo/python-list >> > > > > -- > Joel Goldstick > http://joelgoldstick.com > --=20 Joel Goldstick http://joelgoldstick.com --20cf307ca04c976cad04d75a2eac Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable



On Thu, Mar 7, 2013 at 12:41 PM, Joel Goldstick &= lt;joel.golds= tick@gmail.com> wrote:



On Thu, Mar 7= , 2013 at 11:22 AM, =CE=9D=CE=AF=CE=BA=CE=BF=CF=82 =CE=93=CE=BA=CF=8133=CE= =BA <nikos.gr33k@gmail.com> wrote:
I have fixed this!
Still ahve allok and you will see that in both of my images they appear in = the firstpage of superhos= t.gr

the output of .py files appear fine except of that ehen a visitor click on = my first 2 image links he also sees as first line this:

print ( "Content-type: text/html; charset=3Dutf-8\n" )

this is because the above code is a header and its contained to every cgi .= py file that i generate html ouput from via os.system()

Can this be somehow eliminated?

This may have to do with the configurat= ion of your server.=C2=A0 There may be differences in how to do that for py= thon 2.x and python 3.x.=C2=A0 I can't help you more than that
=C2=A0
--

That page is not valid html.=C2=A0 View the source in y= our browser to see -- it has no <html> tag, no <head>, no <b= ody>.=C2=A0 fix that stuff
http://mail.python.org/mailman/listinfo/python-list



--
J= oel Goldstick
http://joelgoldstick.com



--
J= oel Goldstick
http://joelgoldstick.com
--20cf307ca04c976cad04d75a2eac--