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


Groups > comp.lang.python > #44163 > unrolled thread

Re: Running simultaneuos "FOR" loops

Started byChris Angelico <rosuav@gmail.com>
First post2013-04-23 17:35 +1000
Last post2013-04-23 17:35 +1000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Running simultaneuos "FOR" loops Chris Angelico <rosuav@gmail.com> - 2013-04-23 17:35 +1000

#44163 — Re: Running simultaneuos "FOR" loops

FromChris Angelico <rosuav@gmail.com>
Date2013-04-23 17:35 +1000
SubjectRe: Running simultaneuos "FOR" loops
Message-ID<mailman.963.1366702523.3114.python-list@python.org>
On Tue, Apr 23, 2013 at 5:13 PM, inshu chauhan <insideshoes@gmail.com> wrote:
> This statement is giving me the following error
>
> Statement:
> for p, k, j in zip(sorted(segments.iterkeys(), class_count.iterkeys(),
> pixel_count.iterkeys())):

You probably want to sort them separately. By the way, using
iterkeys() isn't going to do much for you, since you're sorting them;
you need to see all the keys to sort them.

ChrisA

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web