TypeError: iterable argument required

Chris Angelico rosuav at gmail.com
Sat Apr 2 21:31:35 CEST 2011


2011/4/3 MRAB <python at mrabarnett.plus.com>:
> I can't see what the "mail = None, comment = None" is meant to be.

If this is to reset the two variables after inserting into the
database, you may want to use either:

mail = None; comment = None  # semicolon not comma
or
mail = comment = None  # chaining assignment

Is that the line with the error, though?

Chris Angelico



More information about the Python-list mailing list