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


Groups > comp.lang.python > #13040

Re: can't generate iterator from list

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <miki.tebeka@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.026
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; 'message- id:@glegroupsg2000goo.googlegroups.com': 0.09; 'reply- to:addr:comp.lang.python': 0.09; 'to:addr:comp.lang.python': 0.09; 'from:addr:miki.tebeka': 0.16; 'from:name:miki tebeka': 0.16; 'url:pocoo': 0.16; 'cc:addr:python-list': 0.16; 'subject:list': 0.18; 'cc:no real name:2**0': 0.20; 'cc:2**0': 0.22; 'header:In- Reply-To:1': 0.22; 'somewhere': 0.23; 'code': 0.25; 'skip:b 20': 0.26; 'url:)': 0.29; 'cc:addr:python.org': 0.30; 'example': 0.30; 'skip:b 30': 0.31; 'list': 0.32; 'header:User-Agent:1': 0.34; 'post': 0.36; 'but': 0.37; 'subject:can': 0.38; 'received:google.com': 0.38; 'url:org': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.39; 'subject:from': 0.40; "it's": 0.40; 'where': 0.40; 'header:Reply-To:1': 0.71; 'reply-to:no real name:2**0': 0.71; 'reply-to:addr:googlegroups.com': 0.74
Newsgroups comp.lang.python
Date Fri, 9 Sep 2011 17:07:54 -0700 (PDT)
In-Reply-To <mailman.920.1315612886.27778.python-list@python.org>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=75.84.253.172; posting-account=uo-8fwoAAACKsFzFX78JHudx1V7WDXZ0
References <mailman.920.1315612886.27778.python-list@python.org>
User-Agent G2/1.0
X-Google-Web-Client true
MIME-Version 1.0
Subject Re: can't generate iterator from list
From Miki Tebeka <miki.tebeka@gmail.com>
To comp.lang.python@googlegroups.com
Content-Type text/plain; charset=ISO-8859-1
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
Reply-To comp.lang.python@googlegroups.com
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>
Message-ID <mailman.921.1315613276.27778.python-list@python.org> (permalink)
Lines 2
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1315613276 news.xs4all.nl 2408 [2001:888:2000:d::a6]:48566
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:13040

Show key headers only | View raw


1. Can you post the code somewhere where it's indented properly? (http://paste.pocoo.org/)
2. In the list example you call balls_in_numbered_boxes(2, [3,3,3]) but in the interactive example you call balls_in_numbered_boxes(3,[3,3,3])

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


Thread

can't generate iterator from list "Dr. Phillip M. Feldman" <Phillip.M.Feldman@gmail.com> - 2011-09-09 16:45 -0700
  Re: can't generate iterator from list Miki Tebeka <miki.tebeka@gmail.com> - 2011-09-09 17:07 -0700
  Re: can't generate iterator from list Miki Tebeka <miki.tebeka@gmail.com> - 2011-09-09 17:07 -0700
  Re: can't generate list from iterator [was: can't generate iterator from list] Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-09-10 10:55 +1000

csiph-web