Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.chainon-marquant.org!news-transit.tcx.org.uk!rt.uk.eu.org!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'one?': 0.05; 'dict': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'relational': 0.09; 'am,': 0.12; 'case.': 0.15; 'dbms': 0.16; 'subject:independent': 0.16; "wouldn't": 0.17; 'wrote:': 0.18; '>>>': 0.18; 'ryan': 0.18; 'dec': 0.22; 'header:In-Reply-To:1': 0.22; 'items.': 0.23; 'unlikely': 0.23; 'pm,': 0.29; 'sun,': 0.30; 'tens': 0.30; 'chris': 0.30; 'usually': 0.31; 'subject:?': 0.31; 'quite': 0.32; 'cases': 0.32; 'header:User-Agent:1': 0.33; 'header:X-Complaints-To:1': 0.33; 'there': 0.33; 'to:addr:python- list': 0.34; 'all.': 0.34; 'implies': 0.34; 'lie': 0.34; 'received:au': 0.36; 'except': 0.37; 'using': 0.38; 'steven': 0.38; 'received:org': 0.38; 'processing': 0.39; 'should': 0.39; 'why': 0.39; 'to:addr:python.org': 0.40; '2011': 0.61; '11,': 0.68; 'database.': 0.74; 'received:110': 0.95 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Lie Ryan Subject: Re: order independent hash? Date: Sun, 11 Dec 2011 14:04:55 +1100 References: <30715729.411.1322753732534.JavaMail.geo-discussion-forums@pret21> <4ED7A2CE.6070306@davea.name> <6366868.86.1322800180523.JavaMail.geo-discussion-forums@pret21> <87k46fb8pg.fsf@xemacs.org> <87aa78bfvv.fsf@xemacs.org> <87y5un9zs6.fsf@xemacs.org> <4ee1f093$0$29977$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 110-175-240-90.static.tpgi.com.au User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111124 Thunderbird/8.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1323572713 news.xs4all.nl 6890 [2001:888:2000:d::a6]:60382 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:16976 On 12/11/2011 11:17 AM, Chris Angelico wrote: > On Sun, Dec 11, 2011 at 10:58 AM, Lie Ryan wrote: >> On 12/09/2011 10:27 PM, Steven D'Aprano wrote: >>> Except for people who needed dicts with tens of millions of items. >> >> who should be using a proper DBMS in any case. > > Not necessarily. "Database" usually implies disk-based and relational, > features that may well be quite superfluous; and a pure-memory > database with no relational facilities... is basically a dict. So why > not use one? It is very unlikely you'd have millions of items in a dict and you're not planning to do any data processing at all. In any case, there are very few use cases which requires the use of a dict with millions of items that wouldn't be better served by a proper database.