Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!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.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.01; 'debug': 0.07; 'assigning': 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; 'subject:How': 0.10; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:already': 0.16; 'wrote:': 0.18; 'header:User-Agent:1': 0.23; '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; 'thanks': 0.36; 'nov': 0.38; 'to:addr:python-list': 0.38; 'rather': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; "you're": 0.61; 'answer.': 0.68; 'lesson.': 0.84; 'subject:add': 0.91; 'received:108': 0.93; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dave Angel Subject: Re: How to add a current string into an already existing list Date: Tue, 05 Nov 2013 23:36:40 -0600 References: <5278db56$0$29972$c3e8da3$5496439d@news.astraweb.com> <20131105094515.47d8a8c2@bigbox.christie.dr> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: pool-108-12-85-29.hstntx.dsl-w.verizon.net In-Reply-To: <20131105094515.47d8a8c2@bigbox.christie.dr> User-Agent: Groundhog Newsreader for Android 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: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1383716216 news.xs4all.nl 15991 [2001:888:2000:d::a6]:58973 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:58548 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. -- DaveA