Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.080 X-Spam-Evidence: '*H*': 0.84; '*S*': 0.00; 'dictionary': 0.07; 'message-id:@glegroupsg2000goo.googlegroups.com': 0.16; 'reply- to:addr:comp.lang.python': 0.16; 'to:addr:comp.lang.python': 0.16; 'tuples,': 0.16; 'cc:addr:python-list': 0.17; 'subject:list': 0.19; 'header:In-Reply-To:1': 0.21; 'seems': 0.21; 'cc:2**0': 0.22; 'cc:no real name:2**0': 0.23; 'thanks.': 0.27; 'cc:addr:python.org': 0.30; 'list': 0.33; 'header:User-Agent:1': 0.35; 'quite': 0.36; 'received:google.com': 0.37; 'element': 0.37; 'received:74.125': 0.38; 'subject:: ': 0.38; 'to:addr:googlegroups.com': 0.63; 'header:Reply-To:1': 0.72; 'reply-to:no real name:2**0': 0.72; 'reply- to:addr:googlegroups.com': 0.73; 'received:74.125.83.56': 0.84; 'received:mail-gw0-f56.google.com': 0.84 Newsgroups: comp.lang.python Date: Mon, 30 May 2011 06:50:00 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=178.176.38.33; posting-account=l5tRawoAAACFkcHvghwtSxtu6TKUeCgn User-Agent: G2/1.0 X-Google-Web-Client: true MIME-Version: 1.0 Subject: Re: searching in list From: vino19 To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: comp.lang.python@googlegroups.com List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 3 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1306763409 news.xs4all.nl 49181 [::ffff:82.94.164.166]:36762 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:6662 Thanks. It seems that dictionary is a sorted list of tuples, so the procedure of searching an element is quite quick.