Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #44163
| References | <CAFqGZRGmNj1Hsedz0j8aHw+0UN+a+RDOFNUd1fU2v22T5VyhGg@mail.gmail.com> <CAPTjJmoqGXr0B=kLk0W2vPJ=SOxCvvKUP7QRR8FS7wk8SZn2aw@mail.gmail.com> <CAFqGZRECdw_KcgO4PPbEntJwEN59V==iC6cgsi=rFw2hg__pfA@mail.gmail.com> <CAFqGZREDssOaUJfr7pRN3hF-EeB1Bg80W3aPs3zMtGNhg6NfWg@mail.gmail.com> <CAFqGZRHHdWX5bGHt=U_Ppw__LBsDtbRwkfCugNJJ9m_yaOmGjQ@mail.gmail.com> |
|---|---|
| Date | 2013-04-23 17:35 +1000 |
| Subject | Re: Running simultaneuos "FOR" loops |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.963.1366702523.3114.python-list@python.org> (permalink) |
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 comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Running simultaneuos "FOR" loops Chris Angelico <rosuav@gmail.com> - 2013-04-23 17:35 +1000
csiph-web