Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'output': 0.04; "'',": 0.07; 'line:': 0.07; 'subject:How': 0.09; 'failed:': 0.09; 'subject:script': 0.09; 'kurt': 0.11; 'concatenate': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'jan': 0.18; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'received:209.85.212': 0.28; 'objects': 0.29; 'problem': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'subject:?': 0.35; 'received:209.85': 0.35; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'subject:this': 0.84; '2013': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=L3MJp36/txHy/EIOhV9bWvExDK+6Z9TbsQ4XRNqmlQg=; b=hmVufZJ7X8HhbANj9uqJ36if9RLKcQVvvhyekNvqJzCFI23Qm5UU5J2p9L++R9kXkn PKNchtdeVJH/noeeAl2JFF8d9eGOqpe72YpHn8+7mfqe86rOCClAghE8XYLqWCm0LBbZ iG1tQeJV+pg7f/YwyozjZIw/7izoXfR/psRE5HntN4tumfnTK4mDMR9JZx1POyrIbWOV 4wcqG14OkN7yMD+510UsLa3Ys2gZcdPPa0+t5gFhVZsvyznN2DsJKDHr1V62OlJdJ8ig d2l3je4QNTc4R2cwvoCV21JMVeTiHm1f71cxEdx7MmefuBhoEsbAa4i4/4sfqcaJ/uhv oaFg== MIME-Version: 1.0 In-Reply-To: <50e98ce2$0$294$14726298@news.sunsite.dk> References: <50e97123$0$294$14726298@news.sunsite.dk> <3b31ab41-f531-4c81-acf1-219d3c605935@googlegroups.com> <50e98ce2$0$294$14726298@news.sunsite.dk> Date: Mon, 7 Jan 2013 01:52:14 +1100 Subject: Re: How to modify this script? From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1357483942 news.xs4all.nl 6977 [2001:888:2000:d::a6]:37501 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:36259 On Mon, Jan 7, 2013 at 1:40 AM, Kurt Hansen wrote: > failed: cannot concatenate 'str' and 'tuple' objects The problem is this line: output += '', line, '' Change it to: output += '' + line + '' ChrisA