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


Groups > comp.lang.python > #10430

Seeking an example on using Queue to update variable while threading

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <dannwong@cisco.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.009
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'subject:using': 0.04; 'subject:while': 0.07; 'python': 0.08; 'dict': 0.09; 'subject:example': 0.16; 'subject:variable': 0.16; 'header:In- Reply-To:1': 0.22; 'trying': 0.23; 'works.': 0.23; 'structure': 0.23; "i'm": 0.27; 'example': 0.30; 'queue': 0.30; 'subject:update': 0.30; 'threads.': 0.30; 'thanks': 0.31; 'does': 0.32; 'anyone': 0.33; 'to:addr:python-list': 0.34; 'familiar': 0.36; 'but': 0.37; 'using': 0.37; 'to:addr:python.org': 0.39; 'share': 0.68
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=dannwong@cisco.com; l=456; q=dns/txt; s=iport; t=1311831874; x=1313041474; h=mime-version:content-transfer-encoding:subject:date: message-id:in-reply-to:references:from:to; bh=M9f8pWjGlQ7fuKGBlzmxXhr+h3up8EK51W0FPVDVDlI=; b=Z/kt28J4q4FicMeYjyo3Yoj7VJVPEv2oGqIpp3UDaK2JXknpzwp13rBM HeDcxrtazPwQgs/VZWjrZYTQu08A1zCVWN+3XUI8a2AKj8HNiWnnoYXv9 3BLcMadfH9eGJU1n166SPOMLyNCKM+Y1Luuw3AAjeeWwhMft2UOTgC1/O U=;
X-IronPort-Anti-Spam-Filtered true
X-IronPort-Anti-Spam-Result Av0GANH2ME6tJV2a/2dsb2JhbAA1AQEBAxQBFA0EPR8CASMCBgYkAgICAQESUQEBBSMbhC+TdI4ZcXetH40kkTCBK4QGMV8Eh1mQMIty
X-IronPort-AV E=Sophos;i="4.67,280,1309737600"; d="scan'208";a="7257892"
X-MimeOLE Produced By Microsoft Exchange V6.5
Content-class urn:content-classes:message
MIME-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding base64
Subject Seeking an example on using Queue to update variable while threading
Date Thu, 28 Jul 2011 00:43:19 -0500
In-Reply-To <j0ocpl$l25$1@dough.gmane.org>
X-MS-Has-Attach
X-MS-TNEF-Correlator
Thread-Topic Seeking an example on using Queue to update variable while threading
Thread-Index AcxM6UGPFU08s3ulRgqeOsMVcf4TDQ==
References <20110727080557.194B.1CBB3534@gmail.com><j0nut4$iln$1@dough.gmane.org> <j0ocpl$l25$1@dough.gmane.org>
From "Danny Wong (dannwong)" <dannwong@cisco.com>
To <python-list@python.org>
X-OriginalArrivalTime 28 Jul 2011 05:43:22.0732 (UTC) FILETIME=[43502AC0:01CC4CE9]
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
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.1559.1311831875.1164.python-list@python.org> (permalink)
Lines 6
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1311831875 news.xs4all.nl 23897 [2001:888:2000:d::a6]:46198
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:10430

Show key headers only | View raw


Hi Python experts,
	I'm trying to use a dict structure to store and update information from X number of threads. How do I share this dict structure between threads? I heard of using a queue, but I'm not familiar with how it works. Does anyone have an example of using a queue to store variables/dicts between threads?

Thanks

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


Thread

Seeking an example on using Queue to update variable while threading "Danny Wong (dannwong)" <dannwong@cisco.com> - 2011-07-28 00:43 -0500

csiph-web