Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; '(even': 0.05; 'tree': 0.05; 'lawrence': 0.09; 'library?': 0.09; 'trees': 0.09; 'cc:addr :python-list': 0.11; 'python': 0.11; 'jan': 0.12; '22:06,': 0.16; 'etc.),': 0.16; 'removal,': 0.16; 'sense,': 0.16; 'wrote:': 0.18; 'library': 0.18; 'fit': 0.20; '>>>': 0.22; 'cc:addr:python.org': 0.22; "aren't": 0.24; 'library,': 0.24; 'cc:2**0': 0.24; 'url:edu': 0.26; 'header:In-Reply-To:1': 0.27; "doesn't": 0.30; 'especially': 0.30; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'url:wiki': 0.31; 'url:wikipedia': 0.31; 'probably': 0.32; 'url:python': 0.33; '(e.g.': 0.33; 'could': 0.34; 'good.': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'url:listinfo': 0.36; 'url:org': 0.36; 'list': 0.37; 'performance': 0.37; 'pm,': 0.38; 'url:mail': 0.40; 'most': 0.60; 'provide': 0.64; 'different': 0.65; '20,': 0.68; 'url:htm': 0.73; 'grow': 0.77; '2015': 0.84; 'dict,': 0.84; 'expose': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=cuPzHZY/J4yOWPOaxY99Ty9i6t5AR4qgGzXtChnmSDo=; b=Y8Bvz4ZJz1qf+qJP2sf+XR92o0H2uRZswMpGJxU9yehW7pUnf3QVIyl6j8lOeJ1vAC yxcyJjJkzUNE3QNgvNmk1gL3/i16pxi2k2c/PuWvdQyCwRPWsKNUV5ah9ZSQYMuM0HjC l/uHAQpJYNz9jqml6+wGlAzilxU1d75mZYXDCNMVXYo0lPjOa/1cwx3FyNWjq4lYPxud 79OWffZgh9YPYF+ZAf2des3rvcsznMmURumzm51b0DHnE4naoMo47QmptEwCzj82MxlT 7EsioOgrP2FmaRXwESqRx7UQZPvXXPhZfKWmgiNFkty+++smpvV0poo+S4Rm8x4Ssib/ OXlg== X-Received: by 10.224.130.198 with SMTP id u6mr62294238qas.9.1421785186392; Tue, 20 Jan 2015 12:19:46 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <54BEB745.2030309@seehart.com> References: <54BEB745.2030309@seehart.com> From: Devin Jeanpierre Date: Tue, 20 Jan 2015 12:19:06 -0800 Subject: Re: Trees To: Ken Seehart Content-Type: text/plain; charset=UTF-8 Cc: "comp.lang.python" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 32 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1421785195 news.xs4all.nl 2883 [2001:888:2000:d::a6]:55768 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:84086 There are similarly many kinds of hash tables. For a given use case (e.g. a sorted dict, or a list with efficient removal, etc.), there's a few data structures that make sense, and a library (even the standard library) doesn't have to expose which one was picked as long as the performance is good. -- Devin On Tue, Jan 20, 2015 at 12:15 PM, Ken Seehart wrote: > Exactly. There are over 23,000 different kinds of trees. There's no way you > could get all of them to fit in a library, especially a standard one. > Instead, we prefer to provide people with the tools they need to grow their > own trees. > > http://caseytrees.org/programs/planting/ctp/ > http://www.ncsu.edu/project/treesofstrength/treefact.htm > http://en.wikipedia.org/wiki/Tree > > On 1/19/2015 3:01 PM, Mark Lawrence wrote: >> >> On 19/01/2015 22:06, Zachary Gilmartin wrote: >>> >>> Why aren't there trees in the python standard library? >>> >> >> Probably because you'd never get agreement as to which specific tree and >> which specific implementation was the most suitable for inclusion. >> > > -- > https://mail.python.org/mailman/listinfo/python-list