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


Groups > comp.lang.python > #26871

dictionary into desired variable....

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <th982a@googlemail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.032
X-Spam-Evidence '*H*': 0.94; '*S*': 0.00; 'suppose': 0.07; 'python': 0.09; 'subject:into': 0.09; 'dictionary,': 0.16; 'variable.': 0.16; 'received:mail-bk0-f46.google.com': 0.22; 'this:': 0.23; 'header:User-Agent:1': 0.26; 'looks': 0.26; 'charset:iso-8859-15': 0.26; 'received:209.85.214.46': 0.27; 'represent': 0.28; 'dictionary': 0.29; 'points': 0.29; 'certain': 0.33; 'values.': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'from:addr:googlemail.com': 0.35; 'received:209.85': 0.35; 'should': 0.36; 'received:209': 0.37; 'to:addr:python.org': 0.39; 'received:209.85.214': 0.39; 'where': 0.40; 'header:Received:5': 0.40; 'subject:....': 0.65; 'receive': 0.71
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=uxiebpMnRP/BfGCR02wodHgSvvTCN5JXjJ9fbTxgb2I=; b=0gcadVFjtNP6Hp27/8rXYohQHhubidOOgabSBAYFQFXSJIwjPMH278sjEVjaMNO0RA vrFcKhG9BrYgnk//jGuimSygcwqhhV8nFu+laDUkQUMp23T1MZsRgIGqrT8sGAzfNM1M Z5LP3iLzYnC5rVYOOpy42lA2rAnPY7XqZoJv8/TAKh2QhknATBTLyr/3DQ/soLZ3g3+u 86uGcZ5FmDIZ7kALRmM7McwM+IkI1WAH53KSe3nUMJh2LRhyier/ldOeDh9xCkufyX+u bwm+iYbRdH5tDNNDDGZAdaCIMwV1kWNmZoi/Dw0U4dbJfG4+ArUf0z4AacCkrB6mEUg7 /uBA==
Date Fri, 10 Aug 2012 16:02:31 +0200
From Tamer Higazi <th982a@googlemail.com>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:10.0.6esrpre) Gecko/20120730 Thunderbird/10.0.6
MIME-Version 1.0
To python-list@python.org
Subject dictionary into desired variable....
Content-Type text/plain; charset=ISO-8859-15
Content-Transfer-Encoding 7bit
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.3161.1344607363.4697.python-list@python.org> (permalink)
Lines 16
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1344607363 news.xs4all.nl 6928 [2001:888:2000:d::a6]:59985
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:26871

Show key headers only | View raw


Hi!
suppose you have a dictionary that looks like this:

x = [1,3,6,1,1] which should represent a certain other variable.

in reality it would represent:

y[1][3][6][1][1]

Now, how do I write a python routine, that points in this dictionary,
where I should receive or set other values.



Tamer

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


Thread

dictionary into desired variable.... Tamer Higazi <th982a@googlemail.com> - 2012-08-10 16:02 +0200

csiph-web