Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; "'python": 0.07; 'python': 0.09; "%s'": 0.09; 'subject:error': 0.11; 'subject:python': 0.11; ':-)': 0.13; '(int)': 0.16; 'concatenate': 0.16; 'subject:when': 0.16; '{0}': 0.16; 'wrote:': 0.17; 'skip:{ 20': 0.17; 'thu,': 0.17; 'tries': 0.17; 'email addr:gmail.com>': 0.20; 'otherwise,': 0.20; 'to:name:python-list@python.org': 0.20; '>': 0.23; 'header:In-Reply-To:1': 0.25; 'message- id:@mail.gmail.com': 0.27; 'fixed': 0.28; 'url:mailman': 0.29; 'call.': 0.30; 'problem.': 0.32; 'url:python': 0.32; 'url:listinfo': 0.32; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'so,': 0.35; 'pm,': 0.35; 'url:org': 0.36; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'url:mail': 0.40; 'situation': 0.62; 'more': 0.63; 'within': 0.64; 'it!': 0.64; 'here': 0.65; '2013': 0.84; 'joel': 0.91 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:content-type; bh=icpP2RJ48UpA4+z+AW3LuGwQaRrtb4p2nihf7k2hehs=; b=jqJsVojlA2P08QqVRLCaONJEmsgVsxx1wRABOxUpfJx0c8JZ+ml8T92kqkklzZMQ3y CbHSJeWjgIOaymm5FRXruda7OEPrP7bo27S3J1JkWMl1ZFbRzLpCi+6RI9e0rVpEh/O0 GAqsDCHJ/oocdf1m6dWzIe1YgQz5UaZ8MQQ8DMq1LN/19wK0e84GzomCtYuV9aFrfpqk MexKujsXIhL1qA9NOajoEJG4Csc0W0cij7e0sN59nV54s4VO9khfdEEuzqgvGI4K7Wb+ a7NuAYni7nzgPws4YJ+M8QxAzyg4DfnaT+Ds4CegSAnZeUpTUEAindQn3XFHR6YbqMPh Dq9g== MIME-Version: 1.0 X-Received: by 10.52.23.205 with SMTP id o13mr11668051vdf.78.1362684993363; Thu, 07 Mar 2013 11:36:33 -0800 (PST) In-Reply-To: References: <8e17232e-5b24-4040-9215-c4bd89f34fa2@googlegroups.com> <622d4a2d-0014-4254-b211-c8fd66510f74@googlegroups.com> <33f153b4-4f54-429a-a92d-387b679bf758@googlegroups.com> <20130307105137.a6cae268f7f074fbf5017b1d@lavabit.com> Date: Thu, 7 Mar 2013 14:36:33 -0500 Subject: Re: An error when i switched from python v2.6.6 => v3.2.3 From: Joel Goldstick To: "python-list@python.org" Content-Type: multipart/alternative; boundary=20cf307ca364f8951d04d75ad2ca 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: 110 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362684995 news.xs4all.nl 6842 [2001:888:2000:d::a6]:51208 X-Complaints-To: abuse@xs4all.nl Path: csiph.com!usenet.pasdenom.info!news.stben.net!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder5.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Xref: csiph.com comp.lang.python:40814 --20cf307ca364f8951d04d75ad2ca Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, Mar 7, 2013 at 1:57 PM, Joel Goldstick wr= ote: > > > > On Thu, Mar 7, 2013 at 1:51 PM, rh wrote: > >> On Thu, 7 Mar 2013 07:57:33 -0800 (PST) >> =CE=9D=CE=AF=CE=BA=CE=BF=CF=82 =CE=93=CE=BA=CF=8133=CE=BA wrote: >> > >> > I found it! I have placed 'htmltemp' within the os.system() call. >> > Otherwise, os.system() returns a return value (int) which python then >> > tries to concatenate with htmltemp (string). >> > >> > os.system( 'python metrites.py > %s' % htmltemp ) >> >> Can also do >> sterrs =3D 'errorsout' >> os.system( 'python metrites.py > {0} 2> {1}'.format(htmltemp,sterrs)) >> >> It's more 3ish, or 3ist or 3like. >> > >> > :-) >> >> -- >> http://mail.python.org/mailman/listinfo/python-list >> > > The content type situation is discussed here > http://stackoverflow.com/questions/9145517/executing-a-python-script-in-a= pache2 > > -- > Joel Goldstick > http://joelgoldstick.com > So, I see you fixed the problem. How? --=20 Joel Goldstick http://joelgoldstick.com --20cf307ca364f8951d04d75ad2ca Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable



On Thu, Mar 7, 2013 at 1:57 PM, Joel Goldstick &l= t;joel.goldst= ick@gmail.com> wrote:

=


On Thu, Mar 7= , 2013 at 1:51 PM, rh <richard_hubbe11@lavabit.com> wrote:
On Thu, 7 Mar 2013 0= 7:57:33 -0800 (PST)
=CE=9D=CE=AF=CE=BA=CE=BF=CF=82 =CE=93=CE=BA=CF=8133=CE=BA <nikos.gr33k@gmail.com>= wrote:
>
> I found it! I have placed 'htmltemp' within the os.system() ca= ll.
> Otherwise, os.system() returns a return value (int) which python then<= br> > tries to concatenate with htmltemp (string).
>
> os.system( 'python metrites.py > %s' % htmltemp )

Can also do
sterrs =3D 'errorsout'
os.system( 'python metrites.py > {0} 2> {1}'.format(htmltemp,= sterrs))

It's more 3ish, or 3ist or 3like.
>
> :-)

--
http://mail.python.org/mailman/listinfo/python-list


--

=C2=A0
So, I see you fixed the problem.=C2=A0 How?

--
<= div>Joel Goldstick
http://joelgoldstick.com
--20cf307ca364f8951d04d75ad2ca--