Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'debug': 0.07; 'assigning': 0.09; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:into': 0.09; 'subject:string': 0.09; 'tismer': 0.09; 'subject:How': 0.10; 'python': 0.11; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:already': 0.16; 'language': 0.16; 'wrote:': 0.18; 'programming': 0.22; 'header :User-Agent:1': 0.23; 'second': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'tim': 0.29; 'subject:list': 0.30; 'chase': 0.31; 'but': 0.35; 'thanks': 0.36; 'christian': 0.38; 'nov': 0.38; 'to:addr:python-list': 0.38; 'rather': 0.38; 'moving': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'dave': 0.60; 'world.': 0.61; "you're": 0.61; 'answer.': 0.68; 'lesson.': 0.84; 'short,': 0.84; 'angel': 0.91; 'subject:add': 0.91; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: How to add a current string into an already existing list Date: Wed, 06 Nov 2013 08:53:02 +0000 References: <5278db56$0$29972$c3e8da3$5496439d@news.astraweb.com> <20131105094515.47d8a8c2@bigbox.christie.dr> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-78-147-180-94.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 In-Reply-To: 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: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1383728104 news.xs4all.nl 15996 [2001:888:2000:d::a6]:48233 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:58558 On 06/11/2013 05:36, Dave Angel wrote: > On Tue, 5 Nov 2013 09:45:15 -0600, Tim Chase > wrote: >> You're assigning it to the bound function rather than calling the >> function. Use the "call" operator: > >> data = infile.readlines() > > Thanks for spoiling the lesson. Nicks needs to learn how to debug 4 line > programs without someone giving him the answer. > He needs to learn on short, consise programs before moving up to the medium size 4 liners. -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence