Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #6664
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.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.017 |
| X-Spam-Evidence | '*H*': 0.97; '*S*': 0.00; 'dictionary': 0.07; 'pm,': 0.10; 'received:209.85.214.174': 0.14; 'received:mail- iw0-f174.google.com': 0.14; 'wrote:': 0.14; 'angelico': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'tuples,': 0.16; 'mon,': 0.17; 'subject:list': 0.19; 'header:In- Reply-To:1': 0.21; 'seems': 0.21; 'thanks.': 0.27; 'message- id:@mail.gmail.com': 0.28; 'received:209.85.214': 0.28; 'to:addr :python-list': 0.33; 'list': 0.33; 'chris': 0.34; 'quite': 0.36; 'received:google.com': 0.37; 'received:209.85': 0.37; 'element': 0.37; 'subject:: ': 0.38; 'received:209': 0.39; 'to:addr:python.org': 0.39; '30,': 0.84; '11:50': 0.84; 'want!': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=jQU0oITnDAwVpaaz0p+Os0gnCFPhY0DD2m/QQp8vE88=; b=a2BCdmbF0p7q4xwcdvhnIiPpNVJ1S0JPGq1bb3qFlX8QAHCZ4yedxTo3bNYpNikvsf 9RyHTF9Rb2S7yLS7vbPnMhDp0xg/jr6hTMeCSCssoV17qIUiQglfGjTVT6SIucrevp8h ieXePpptrTmOyObBYtHcvXoWyvw/B6QLQl1a0= |
| DomainKey-Signature | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ok87wQ19+czf5QCxr32ZSAnNlnsJEVXnWLJmfZitqa4+WWsI5PH7u+uh4MXlIKdJMZ sGu9ANAl3wMJWtMdfAS2XMrEDHDWt/pHcX2Ff/QqpzGntzRiStFwOs0etN0WnDiMygQy ov+SEUK1guTa6Mz2ZQWZkeM83H8R3M9aB9riU= |
| MIME-Version | 1.0 |
| In-Reply-To | <81cbfee3-a0a6-4aa0-97e7-1073332ab6cf@glegroupsg2000goo.googlegroups.com> |
| References | <mailman.2266.1306762863.9059.python-list@python.org> <81cbfee3-a0a6-4aa0-97e7-1073332ab6cf@glegroupsg2000goo.googlegroups.com> |
| Date | Tue, 31 May 2011 00:48:49 +1000 |
| Subject | Re: searching in list |
| 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.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.2268.1306766932.9059.python-list@python.org> (permalink) |
| Lines | 9 |
| NNTP-Posting-Host | 82.94.164.166 |
| X-Trace | 1306766932 news.xs4all.nl 49042 [::ffff:82.94.164.166]:33603 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:6664 |
Show key headers only | View raw
On Mon, May 30, 2011 at 11:50 PM, vino19 <vinograd19@gmail.com> wrote: > Thanks. > > It seems that dictionary is a sorted list of tuples, so the procedure of searching an element is quite quick. Not sorted - it's hashed, so it's even faster. Yep, sounds like a dictionary is everything you want! Chris Angelico
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: searching in list vino19 <vinograd19@gmail.com> - 2011-05-30 06:50 -0700 Re: searching in list Chris Angelico <rosuav@gmail.com> - 2011-05-31 00:48 +1000
csiph-web