Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #2467

Re: TypeError: iterable argument required

References <3902dc1f-90bb-4602-9938-402a3582aa84@v31g2000vbs.googlegroups.com> <4D9753DF.7010700@mrabarnett.plus.com>
Date 2011-04-03 05:31 +1000
Subject Re: TypeError: iterable argument required
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.136.1301772697.2990.python-list@python.org> (permalink)

Show all headers | View raw


2011/4/3 MRAB <python@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

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

TypeError: iterable argument required Νικόλαος Κούρας <nikos.kouras@gmail.com> - 2011-04-02 09:26 -0700
  Re: TypeError: iterable argument required MRAB <python@mrabarnett.plus.com> - 2011-04-02 17:50 +0100
    Re: TypeError: iterable argument required Νικόλαος Κούρας <nikos.kouras@gmail.com> - 2011-04-02 14:02 -0700
  Re: TypeError: iterable argument required Chris Angelico <rosuav@gmail.com> - 2011-04-03 05:31 +1000

csiph-web