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


Groups > comp.lang.python > #2467

Re: TypeError: iterable argument required

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.033
X-Spam-Evidence '*H*': 0.93; '*S*': 0.00; 'comma': 0.16; 'inserting': 0.16; 'mrab': 0.16; 'none"': 0.16; 'semicolon': 0.16; 'subject:iterable': 0.16; 'subject:required': 0.16; 'meant': 0.18; 'header:In-Reply-To:1': 0.22; 'received:209.85.214.174': 0.23; 'received:mail-iw0-f174.google.com': 0.23; 'chris': 0.27; 'message-id:@mail.gmail.com': 0.28; 'be.': 0.29; 'variables': 0.29; 'comment': 0.30; 'none,': 0.31; "can't": 0.31; 'to:addr :python-list': 0.32; 'reset': 0.33; 'assignment': 0.35; 'none': 0.36; 'two': 0.37; 'received:209.85': 0.37; 'received:google.com': 0.38; 'received:209.85.214': 0.39; 'to:addr:python.org': 0.39; 'received:209': 0.39; 'header:Received:5': 0.40; 'database,': 0.60; 'none;': 0.60
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=/edsLsULlzM0SrTTi2UR6peBPSF4eVGlpSr7HaCJZgw=; b=UKQjYf0OzKCT5N/+JpAZBsyPONIjOlt+eZ4VCdPw6WFyspPd7wg64Oh5EYi9YobLed mH48sCTyp5qXaqBImsPLmI8BHSs1W6pbQE62PxTRNgW9wmZQzIj940t4DGmsWJvaHGI0 k4tmgpsz/ltan1WqQE/SJCaSOEmLpReMEmed8=
DomainKey-Signature a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ejjHtiJ97NVCZcmcg6KUVSQt1HC+18MWU8jiCEfMansxyfJ+jUNJrmZ3kIX8L85qlQ w73UpVh/7QT/DppVzbK4AzKH4mwJtPdX0Ny5Uxi8q8O+w+7m21AQuh1G/pU4mQX5p+UP Y3O6kA7S+Z2vPcFJwddxOYuiJ0xMMTDMVgiws=
MIME-Version 1.0
In-Reply-To <4D9753DF.7010700@mrabarnett.plus.com>
References <3902dc1f-90bb-4602-9938-402a3582aa84@v31g2000vbs.googlegroups.com> <4D9753DF.7010700@mrabarnett.plus.com>
Date Sun, 3 Apr 2011 05:31:35 +1000
Subject Re: TypeError: iterable argument required
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.136.1301772697.2990.python-list@python.org> (permalink)
Lines 13
NNTP-Posting-Host 82.94.164.166
X-Trace 1301772697 news.xs4all.nl 41110 [::ffff:82.94.164.166]:34593
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:2467

Show key headers only | 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