How to add a current string into an already existing list

Dave Angel davea at davea.name
Tue Nov 5 12:16:28 CET 2013


On Tue, 05 Nov 2013 12:33:49 +0200, Nick the Gr33k 
<nikos.gr33k at gmail.com> 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




More information about the Python-list mailing list