Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #44163 > unrolled thread
| Started by | Chris Angelico <rosuav@gmail.com> |
|---|---|
| First post | 2013-04-23 17:35 +1000 |
| Last post | 2013-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.
Re: Running simultaneuos "FOR" loops Chris Angelico <rosuav@gmail.com> - 2013-04-23 17:35 +1000
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2013-04-23 17:35 +1000 |
| Subject | Re: 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
Back to top | Article view | comp.lang.python
csiph-web