Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #44163
| Path | csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.097 |
| X-Spam-Evidence | '*H*': 0.83; '*S*': 0.02; '23,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'skip:z 30': 0.16; 'sorting': 0.16; 'wrote:': 0.18; 'error': 0.23; 'sort': 0.25; 'header:In-Reply-To:1': 0.27; 'statement': 0.30; 'message-id:@mail.gmail.com': 0.30; 'keys': 0.31; 'probably': 0.32; 'received:google.com': 0.35; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'subject:" ': 0.39; 'to:addr:python.org': 0.39; 'skip:p 20': 0.39; "you're": 0.61; 'subject:FOR': 0.91; '2013': 0.98 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=CLaXY+BG3l6/iI80c+wNDPpfb3hlO+3rH9vbzELXuvs=; b=Io0mSdadMkhVjNN/sj47cmueNPYtdvq91/TwGnIN8XNgkjZUhfcCUS7/++Jf0cdMOs j2INCkOZ83/sAFnD2YPIxh1jrZRwIQkx0HvTRb8FSwVp4kOebhHlWy0HJ2jutStAvp1r zQe1j67h0AOAKgew9GTkoZ6AN4cjNI1EfIeZHNyGCOvbb+nVnVODcgyrNXc9bgVMd7MK Vnhlz37jXTPFdlN6X8NH3JvId1sH08klwFo+n/ns0VBj4rZ9WfQuyHuu/Op1gl0aHH+A 56ROgdBVYeAgNtsSdH84ciQpv8fS4cLPMa6wxSz9jINjfHeHA4hrrV9Y0yExqMYGmDvW POGw== |
| MIME-Version | 1.0 |
| X-Received | by 10.58.15.193 with SMTP id z1mr21599042vec.40.1366702520978; Tue, 23 Apr 2013 00:35:20 -0700 (PDT) |
| In-Reply-To | <CAFqGZRHHdWX5bGHt=U_Ppw__LBsDtbRwkfCugNJJ9m_yaOmGjQ@mail.gmail.com> |
| 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 | Tue, 23 Apr 2013 17:35:20 +1000 |
| Subject | Re: Running simultaneuos "FOR" loops |
| 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.15 |
| 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.963.1366702523.3114.python-list@python.org> (permalink) |
| Lines | 12 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1366702523 news.xs4all.nl 2200 [2001:888:2000:d::a6]:54647 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:44163 |
Show key headers only | View raw
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