Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #6664
| References | <mailman.2266.1306762863.9059.python-list@python.org> <81cbfee3-a0a6-4aa0-97e7-1073332ab6cf@glegroupsg2000goo.googlegroups.com> |
|---|---|
| Date | 2011-05-31 00:48 +1000 |
| Subject | Re: searching in list |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2268.1306766932.9059.python-list@python.org> (permalink) |
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