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

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to