Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.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.065 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.02; 'tutorial': 0.03; 'subject:into': 0.09; 'subject:string': 0.09; 'subject:How': 0.10; 'python': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'nick': 0.16; 'subject:already': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'not,': 0.20; 'python?': 0.22; 'header:In- Reply-To:1': 0.27; 'subject:list': 0.30; 'message- id:@mail.gmail.com': 0.30; 'code': 0.31; 'helpful.': 0.31; 'beginning': 0.33; 'received:google.com': 0.35; 'really': 0.36; 'method': 0.36; 'possible': 0.36; 'so,': 0.37; 'nov': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'even': 0.60; 'read': 0.60; 'tell': 0.60; 'you.': 0.62; 'back': 0.62; 'glad': 0.83; 'obvious,': 0.91; 'subject:add': 0.91; 'incredibly': 0.96; '2013': 0.98 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=eaabUVosBaOR5ija3UH6clvoef4D9ReoKHxEPQbiLmc=; b=f29R52lTTGJgeCEVYz7mtdesDfxv/4xBcqhzCcG/ZnwesWEgMaotrWsXYTC6pN4id0 n05ydgSf9SfO3DqpBEtVsisL5ZzizFJU5AE98oWsWdPwsto1kFq9BA93/N/91gAy80bU LCOO5X0l6m4hkw+c8TS+ShavNKofTOof0qNCh+ZOWxF2FYEN+zFfi12H239AW9IGuO1U 6Cb8S1t4wNxoCmP1GzgmFRdIHsmLULZ2HjrEwlN2wcLgyMb1p3SMICsjMSn/tFNhxXux fiVGAV/KYlbtt347i37ZX79az0yCkAMjYhT7855ySHYDt4UhVg64Hfpqs2fODx1q45Vj PKkg== MIME-Version: 1.0 X-Received: by 10.68.197.104 with SMTP id it8mr21869800pbc.17.1383639708753; Tue, 05 Nov 2013 00:21:48 -0800 (PST) In-Reply-To: References: Date: Tue, 5 Nov 2013 19:21:48 +1100 Subject: Re: How to add a current string into an already existing list 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1383639718 news.xs4all.nl 15959 [2001:888:2000:d::a6]:55625 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:58482 On Tue, Nov 5, 2013 at 7:07 PM, Nick the Gr33k wrote: > How is ti possible for data to be none iterable? Do you know how to call a method in Python? If not, go back to the beginning of the tutorial and start reading. If so, look through your code and see where you have a 'method' object that you are trying to treat as iterable. It's really REALLY obvious, and you even have the line number to tell you. Nick, you *need* to learn how to read Python tracebacks. They are incredibly helpful. Be glad you don't just get "Segmentation fault" and a process termination (or, worse, a security hole). ChrisA