Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!bcyclone04.am1.xlned.com!bcyclone04.am1.xlned.com!newsfeed.xs4all.nl!newsfeed4a.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.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'argument': 0.05; 'tree': 0.05; 'float': 0.07; 'special,': 0.09; 'trees': 0.09; 'cc:addr :python-list': 0.11; 'python': 0.11; 'jan': 0.12; 'received:209.85.218': 0.14; 'times,': 0.14; 'email name:<tjreedy': 0.16; 'mappings,': 0.16; 'pypi.': 0.16; 'reedy': 0.16; 'silly': 0.16; 'stdlib.': 0.16; 'strong,': 0.16; 'all.': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'string,': 0.24; 'cc:2**0': 0.24; "i've": 0.25; 'options': 0.25; '>': 0.26; 'certain': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'ideal': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'cases': 0.33; 'maybe': 0.34; "i'd": 0.34; 'could': 0.34; 'advice': 0.35; 'received:209.85': 0.35; 'one,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; 'ordered': 0.36; 'received:209': 0.37; 'others.': 0.38; 'needed': 0.38; 'structure': 0.39; 'most': 0.60; 'more': 0.64; 'different': 0.65; 'world': 0.66; 'direct': 0.67; '20,': 0.68; 'special': 0.74; '2015': 0.84; 'float,': 0.84; 'sir.': 0.84; 'yours.': 0.93; 'hundred': 0.95 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-type; bh=znME8wx0UlptvjmqY6W+N6rfY9dcpHd2mWU04s2Tx0I=; b=PYpCq5nMgjtFyCuGG5fMQHxzk3KnLxkXB5dZ3Xq1HllOSInMWwqI9oRCiGf0tql438 YXdNaqV0RndVY/GDFMgsR1/Aqi86AgXteEpO0LXd9b+A/u3Ptowiu8N1SQZFI5P0rE4y i8vmyv7+Z3SsY5WxjTSJuywI0DMJEgtjPqXJWzBssl23+eDMh6ScAYJfHcI99GQ49qEI hDfT90Jv4EVoVxmj2cqGqb47s7LwZ50b5Dd6yIDWIADl8ksNbzmUpExVXOeViKga9dD2 MBnYEdhCJU6tg23zl0abTb8yp3kVvGbyoAxQ0WSuYjYnGEsIUtT3Um+X7HOvJLlOTAmo 9u4Q== X-Gm-Message-State: ALoCoQlPkrv30c9p9l2E50De91rL01lo0VClVuvj+xg1a8jUt8DJKztLBo89CV1AGQkSaDHlqc7A X-Received: by 10.60.134.73 with SMTP id pi9mr24241774oeb.3.1421827036616; Tue, 20 Jan 2015 23:57:16 -0800 (PST) MIME-Version: 1.0 Sender: ixokai@ixokai.io X-Originating-IP: [24.199.8.246] In-Reply-To: <87ppa9944t.fsf@elektro.pacujo.net> References: <87ppa9944t.fsf@elektro.pacujo.net> From: Stephen Hansen Date: Tue, 20 Jan 2015 23:56:56 -0800 X-Google-Sender-Auth: 0moLoBZslpcurNUNpfWxfeQIlW8 Subject: Re: Trees To: Marko Rauhamaa Content-Type: multipart/alternative; boundary=047d7b41ce6a732cfd050d24e753 Cc: "python-list@python.org" 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: 72 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1421827045 news.xs4all.nl 2903 [2001:888:2000:d::a6]:59919 X-Complaints-To: abuse@xs4all.nl X-Received-Bytes: 7211 X-Received-Body-CRC: 1137136220 Xref: csiph.com comp.lang.python:84107 --047d7b41ce6a732cfd050d24e753 Content-Type: text/plain; charset=UTF-8 On Tue, Jan 20, 2015 at 1:45 AM, Marko Rauhamaa wrote: > Terry Reedy : > > > Others have answered as to why other special-purpose > > constrained-structure trees have not been added to the stdlib. > > Ordered O(log n) mappings are not special-purpose data structures. I'd > say strings and floats are much more special-purpose than ordered > mappings, and yet Python has direct support for those. > Your anecdote is strong, sir. However, I use strings thousands of times, floats maybe a hundred of times, and order mappings a few times. My anecdote counters yours. A tree structure is special purpose because there is a lot of options with different characteristics that make certain implementations ideal in some cases and not in others. A float is a float, there's a standard (IEEE 754?), its not special at all. A string, I suppose, could be special, but that's a pretty nonsense view of the world since what most people use strings commonly. I'm not arguing against including a tree, but I have no advice on which one, and the one-- one!-- time I've needed a tree I got one off pypi. Not everything needs to be in the stdlib. But to call strings and floats special purpose is really a silly argument to make. --047d7b41ce6a732cfd050d24e753 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On T= ue, Jan 20, 2015 at 1:45 AM, Marko Rauhamaa <marko@pacujo.net> wrote:
Terry Reedy <tjreedy@udel.edu>:

> Others have answered as to why other special-purpose
> constrained-structure trees have not been added to the stdlib.

Ordered O(log n) mappings are not special-purpose data structures. I= 'd
say strings and floats are much more special-purpose than ordered
mappings, and yet Python has direct support for those.

Your anecdote is strong, sir.

Howe= ver, I use strings thousands of times, floats maybe a hundred of times, and= order mappings a few times.

My anecdote counters = yours.

A tree structure is special purpose because= there is a lot of options with different characteristics that make certain= implementations ideal in some cases and not in others.

A float is a float, there's a standard (IEEE 754?), its not speci= al at all.

A string, I suppose, could be special, = but that's a pretty nonsense view of the world since what most people u= se strings commonly.=C2=A0

I'm not arguing aga= inst including a tree, but I have no advice on which one, and the one-- one= !-- time I've needed a tree I got one off pypi. Not everything needs to= be in the stdlib.

But to call strings and floats = special purpose is really a silly argument to make.
--047d7b41ce6a732cfd050d24e753--