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


Groups > comp.lang.python > #44146

Running simultaneuos "FOR" loops

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <insideshoes@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.191
X-Spam-Level *
X-Spam-Evidence '*H*': 0.66; '*S*': 0.04; 'syntax': 0.04; 'to:name :python-list@python.org': 0.22; 'error': 0.23; 'code:': 0.26; '???': 0.30; 'message-id:@mail.gmail.com': 0.30; 'run': 0.32; 'skip:s 30': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'implement': 0.38; 'to:addr:python-list': 0.38; 'subject:" ': 0.39; 'to:addr:python.org': 0.39; '8bit%:6': 0.40; 'how': 0.40; '8bit%:10': 0.64; 'obvious,': 0.91; 'subject:FOR': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=G1FlqOD7imflwPn4BZWq6OTMlhC8luWIASFRaHcHCiQ=; b=BU5d6NYxzgCUo2vl2Koi/h7qghDE43ejRsBz3j2Nul7Atup2X+54HbfsDefQInTWjN JWZU/p+CzcU/QtFIQav0HguaWEx2w9DsJm6hfFVv2ATJ2SCWidWcCTwlHUGVTvI2J1ae D4RwCGB34xJUHhvlrvWRVQrpa1HwWihz5c0FJ7TbeTJwIznLn2n5VNCdmli19oRexNXe rgOD/G91s0M7OFXaBpSPOb1kVKxB/BkI+6TReJlexM0cW82EL0RMzorjlYLyHWq+FI61 s39MjcF6Gr/JX3PNBKEW9TLZBcTjTs7kzJYt0gwCY80Jn8WGTlSB77FeSC0FAwIkkU5K U4vA==
MIME-Version 1.0
X-Received by 10.42.145.137 with SMTP id f9mr14870691icv.52.1366699239439; Mon, 22 Apr 2013 23:40:39 -0700 (PDT)
Date Tue, 23 Apr 2013 12:10:39 +0530
Subject Running simultaneuos "FOR" loops
From inshu chauhan <insideshoes@gmail.com>
To "python-list@python.org" <python-list@python.org>
Content-Type multipart/alternative; boundary=90e6ba6e8b50ae820404db01764c
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.953.1366699242.3114.python-list@python.org> (permalink)
Lines 25
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1366699242 news.xs4all.nl 2228 [2001:888:2000:d::a6]:35631
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:44146

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

i have to implement the below line in one of my code:

for  p in sorted(segments.iterkeys()) and for k in
sorted(class_count.iterkeys()) and for j in sorted(pixel_count.iterkeys()):

Its giving me a syntax error which is obvious, but how can I make all three
for loop run simultaneously or any other way to do this simultaneous work
???

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


Thread

Running simultaneuos "FOR" loops inshu chauhan <insideshoes@gmail.com> - 2013-04-23 12:10 +0530

csiph-web