Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; "'python": 0.07; 'python': 0.09; "%s'": 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:error': 0.11; 'subject:python': 0.11; ':-)': 0.13; '(int)': 0.16; 'concatenate': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:when': 0.16; '{0}': 0.16; 'wrote:': 0.17; 'skip:{ 20': 0.17; 'thu,': 0.17; 'tries': 0.17; 'otherwise,': 0.20; 'header:User-Agent:1': 0.26; 'header:X -Complaints-To:1': 0.28; 'call.': 0.30; 'to:addr:python-list': 0.33; 'received:org': 0.36; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'more': 0.63; 'within': 0.64; 'it!': 0.64; '2013': 0.84; 'received:sd.cox.net': 0.84 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: python-list@python.org To: python-list@python.org From: rh Subject: Re: An error when i switched from python v2.6.6 => v3.2.3 Date: Thu, 7 Mar 2013 10:51:37 -0800 References: <8e17232e-5b24-4040-9215-c4bd89f34fa2@googlegroups.com> <622d4a2d-0014-4254-b211-c8fd66510f74@googlegroups.com> <33f153b4-4f54-429a-a92d-387b679bf758@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: ip68-227-87-145.sb.sd.cox.net User-Agent: dsodnetnin X-Mailer: EZnn0.37p X-Newsreader: EZnn0.37p X-Gmane-NNTP-Posting-Host: EZnn0.37p Original-Received: from slem by 1.1 with local X-No-Archive: yes Archive: no X-Archive: expiry=11 X-Archive: encrypt X-Operating-System: Barebones_6.1 X-Gmane-NNTP-Posting-Host: 192.168.1.1 X-NNTP-Posting-Host: 192.168.1.1 Mail-Copies-To: never 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362682281 news.xs4all.nl 6868 [2001:888:2000:d::a6]:34540 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40809 On Thu, 7 Mar 2013 07:57:33 -0800 (PST) Νίκος Γκρ33κ 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 = 'errorsout' os.system( 'python metrites.py > {0} 2> {1}'.format(htmltemp,sterrs)) It's more 3ish, or 3ist or 3like. > > :-)