Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.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.018 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'received:134': 0.05; 'latter': 0.09; 'rows': 0.09; 'subject:into': 0.09; 'subject:string': 0.09; 'subject:How': 0.10; 'python': 0.11; 'carefully.': 0.16; 'iterable': 0.16; 'nick': 0.16; 'subject:already': 0.16; 'typeerror:': 0.16; 'seems': 0.21; 'header:User-Agent:1': 0.23; 'header:In-Reply-To:1': 0.27; 'returned': 0.30; 'subject:list': 0.30; 'supposed': 0.32; 'maybe': 0.34; 'basic': 0.35; 'except': 0.35; 'but': 0.35; "didn't": 0.36; 'list': 0.37; 'clear': 0.37; 'to:addr:python-list': 0.38; 'fact': 0.38; 'rather': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'read': 0.60; 'become': 0.64; 'more': 0.64; 'dont': 0.67; '8bit%:92': 0.71; 'pardon': 0.84; 'subject:add': 0.91 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqEEABbOeFKGuA9G/2dsb2JhbABahxq5M4J/gT2DGQEBBAEjDwFFBgsJAhoCBRYLAgIJAwIBAgFFEwgCh3cGkBibXokniRSBKY43FoJVgUQDmAqGKYtggyc Date: Tue, 05 Nov 2013 11:59:21 +0100 From: Antoon Pardon User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: python-list@python.org Subject: Re: How to add a current string into an already existing list References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1383649164 news.xs4all.nl 15904 [2001:888:2000:d::a6]:49319 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:58496 Op 05-11-13 11:33, Nick the Gr33k schreef: > Στις 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. >From this answer it seems you didn't read the documentation very carefully. > I dont know why it copmains about: > TypeError: 'NoneType' object is not iterable > > what object is supposed to have benn of None type? > how do i check for it? This is realy rather basic python knowledge. But maybe things become clear after you read the documentation of fetchone more carefully. -- Antoon Pardon