TypeError: iterable argument required
MRAB
python at mrabarnett.plus.com
Sat Apr 2 12:50:39 EDT 2011
On 02/04/2011 17:26, Νικόλαος Κούρας wrote:
> Hello, after inserting this line if "@" in mail and comment not in
> ("Σχολιάστε ή ρωτήστε με σχετικά....", ""):
>
> iam getting the following error which i dont understand
>
> **************************************************************
> 163 # insert guest comments into database if form was
> submitted
> 164 if "@" in mail and comment not in ("Σχολιάστε ή ρωτήστε
> με σχετικά....", ""):
> 165 try:
> 166 cursor.execute( '''INSERT INTO
> users(mail, comment) VALUES(%s, %s)''', (mail, comment) )
> mail = None, comment = None
>
> TypeError: iterable argument required
> args = ('iterable argument required',)
> **************************************************************
>
> can you help please?
Which version of Python?
Can you please paste those few lines of code (say, lines 163 to 170).
I can't see what the "mail = None, comment = None" is meant to be.
More information about the Python-list
mailing list