Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #84107
| 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 | <ixokai@ixokai.io> |
| 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 | <CAG=hEY1L-39EmuWpdEh_n-BNfs=qG9nL=MrMT0ar72yGBrkoUA@mail.gmail.com> <mailman.17884.1421734095.18130.python-list@python.org> <87ppa9944t.fsf@elektro.pacujo.net> |
| From | Stephen Hansen <me+python@ixokai.io> |
| Date | Tue, 20 Jan 2015 23:56:56 -0800 |
| X-Google-Sender-Auth | 0moLoBZslpcurNUNpfWxfeQIlW8 |
| Subject | Re: Trees |
| To | Marko Rauhamaa <marko@pacujo.net> |
| Content-Type | multipart/alternative; boundary=047d7b41ce6a732cfd050d24e753 |
| Cc | "python-list@python.org" <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 <python-list.python.org> |
| List-Unsubscribe | <https://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 | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.17906.1421827045.18130.python-list@python.org> (permalink) |
| 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 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
On Tue, 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. 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.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Trees Terry Reedy <tjreedy@udel.edu> - 2015-01-20 01:08 -0500
Re: Trees Marko Rauhamaa <marko@pacujo.net> - 2015-01-20 11:45 +0200
Re: Trees Paul Rubin <no.email@nospam.invalid> - 2015-01-20 10:14 -0800
Re: Trees Marko Rauhamaa <marko@pacujo.net> - 2015-01-20 22:26 +0200
Re: Trees Stephen Hansen <me+python@ixokai.io> - 2015-01-20 23:56 -0800
Re: Trees Marko Rauhamaa <marko@pacujo.net> - 2015-01-21 10:35 +0200
Re: Trees Rustom Mody <rustompmody@gmail.com> - 2015-01-21 04:09 -0800
Re: Trees Chris Angelico <rosuav@gmail.com> - 2015-01-21 23:35 +1100
Re: Trees Rustom Mody <rustompmody@gmail.com> - 2015-01-21 07:24 -0800
Re: Trees Tim Chase <python.list@tim.thechases.com> - 2015-01-21 06:55 -0600
Re: Trees Chris Angelico <rosuav@gmail.com> - 2015-01-22 00:01 +1100
Re: Trees Tim Chase <python.list@tim.thechases.com> - 2015-01-21 08:26 -0600
Re: Trees Chris Angelico <rosuav@gmail.com> - 2015-01-22 01:31 +1100
Re: Trees Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-01-22 01:47 +1100
Re: Trees Ian Kelly <ian.g.kelly@gmail.com> - 2015-01-21 09:15 -0700
Re: Trees Ian Kelly <ian.g.kelly@gmail.com> - 2015-01-21 10:27 -0700
Re: Trees Rustom Mody <rustompmody@gmail.com> - 2015-01-20 05:33 -0800
Re: Trees Rustom Mody <rustompmody@gmail.com> - 2015-01-20 05:51 -0800
Re: Trees Marko Rauhamaa <marko@pacujo.net> - 2015-01-20 16:15 +0200
Re: Trees Rustom Mody <rustompmody@gmail.com> - 2015-01-20 06:35 -0800
Re: Trees Ian Kelly <ian.g.kelly@gmail.com> - 2015-01-20 10:19 -0700
Re: Trees Rustom Mody <rustompmody@gmail.com> - 2015-01-20 10:15 -0800
Re: Trees Rustom Mody <rustompmody@gmail.com> - 2015-01-20 10:35 -0800
Re: Trees Mario <marfig@gmail.com> - 2015-01-20 22:47 +0100
Re: Trees Rustom Mody <rustompmody@gmail.com> - 2015-01-20 17:23 -0800
Re: Trees Paul Rubin <no.email@nospam.invalid> - 2015-01-20 17:49 -0800
Re: Trees Rustom Mody <rustompmody@gmail.com> - 2015-01-20 18:03 -0800
Re: Trees Paul Rubin <no.email@nospam.invalid> - 2015-01-21 14:27 -0800
Re: Trees Rustom Mody <rustompmody@gmail.com> - 2015-01-21 21:17 -0800
Re: Trees Ian Kelly <ian.g.kelly@gmail.com> - 2015-01-21 15:54 -0700
Re: Trees Rustom Mody <rustompmody@gmail.com> - 2015-01-21 21:20 -0800
Re: Trees Ian Kelly <ian.g.kelly@gmail.com> - 2015-01-22 00:01 -0700
Re: Trees Ian Kelly <ian.g.kelly@gmail.com> - 2015-01-21 23:56 -0700
Re: Trees Paul Rubin <no.email@nospam.invalid> - 2015-01-21 23:16 -0800
Re: Trees Rustom Mody <rustompmody@gmail.com> - 2015-01-22 08:54 -0800
Re: Trees Terry Reedy <tjreedy@udel.edu> - 2015-01-20 21:19 -0500
Re: Trees Mario Figueiredo <marfig@gmail.com> - 2015-01-21 14:05 +0000
csiph-web