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.011 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; 'url:mailman': 0.29; 'call.': 0.30; 'url:python': 0.32; 'url:listinfo': 0.32; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'pm,': 0.35; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'url:org': 0.36; 'received:209': 0.37; '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=0KE/ZR3Um06A6r2fd9tAmmw5+leM1ml3nLqTNar1T9w=; b=kU7XtEbBw3gi9Js3UfQpn2eEK2tEoZuKFKC7OnxN4aoxu8qLbHyZHOMC0y+2cBMq3O ZdOmqli34uzCdKjeho+NTVU36LPrsqo1FO4t0c8FEom1zD05XQfVLn9dT3eIR457C7x0 otO4SpgDoKYNLTfdaxwTmztguF02hR6t6Dqw0ZzWrP+cBXIsmbB9F8/RqOyiKlHWRRm7 gWc5d2h75P0u8ZKJ92nHFB4n5F62GZ7x3wJJLtR50HokVH1Rgwy5ObYZNzl1rQUExbsW ZIvH/IYVfIOHONQt9dxMahLvo+6vKDeepyIUgkzNfleWgv5dtaLFvMgcBkdDS9eqbuHj 9rVA== MIME-Version: 1.0 X-Received: by 10.220.119.147 with SMTP id z19mr13275332vcq.69.1362682638965; Thu, 07 Mar 2013 10:57:18 -0800 (PST) In-Reply-To: <20130307105137.a6cae268f7f074fbf5017b1d@lavabit.com> 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 13:57:18 -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=bcaec54d4cfca34fa904d75a4631 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: 81 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362682642 news.xs4all.nl 6954 [2001:888:2000:d::a6]:40027 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40810 --bcaec54d4cfca34fa904d75a4631 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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-apa= che2 --=20 Joel Goldstick http://joelgoldstick.com --bcaec54d4cfca34fa904d75a4631 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable



On Thu, Mar 7, 2013 at 1:51 PM, rh <richard_hubbe11@lava= bit.com> 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 <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


--
--bcaec54d4cfca34fa904d75a4631--