Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!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.009 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'iterate': 0.09; 'latter': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'rows': 0.09; 'subject:into': 0.09; 'subject:string': 0.09; 'subject:How': 0.10; 'complaining': 0.16; 'iterable': 0.16; 'nick': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:already': 0.16; 'typeerror:': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'header:User-Agent:1': 0.23; 'header:X-Complaints- To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'returned': 0.30; 'statement': 0.30; 'subject:list': 0.30; 'about.': 0.31; 'except': 0.35; 'there': 0.35; '+0200,': 0.36; 'list': 0.37; 'nov': 0.38; 'to:addr:python-list': 0.38; 'fact': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'read': 0.60; '8bit%:92': 0.71; 'obvious': 0.74; 'difference.': 0.84; 'pardon': 0.84; 'subject:add': 0.91; 'examine': 0.93; '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 05:16:28 -0600 References: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: pool-108-12-82-77.hstntx.dsl-w.verizon.net In-Reply-To: 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1383650198 news.xs4all.nl 15932 [2001:888:2000:d::a6]:32878 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:58498 On Tue, 05 Nov 2013 12:33:49 +0200, Nick the Gr33k wrote: > Στις 5/11/2013 12:20 μμ, ο/η Antoon Pardon έγραψε: > > Did you read the documentation of fetchone? > fetchone is like fetchall except from the fact that the former returned > a row of data while the latter returned a list of rows of data. That's not the only difference. See the word None there in one of the descriptions? > TypeError: 'NoneType' object is not iterable Examine the statement it's complaining about. It's obvious which item it's trying to iterate over. -- DaveA