Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #34594

Re: ANNOUNCE: Thesaurus - a recursive dictionary subclass using attributes

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeder2.ecngs.de!ecngs!feeder.ecngs.de!xlned.com!feeder7.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <jsf80238@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'attributes': 0.07; 'nested': 0.07; 'called.': 0.09; 'received:mail- qc0-f174.google.com': 0.09; 'subclass': 0.09; 'subject:using': 0.09; 'cc:addr:python-list': 0.10; 'stuff.': 0.16; 'url:html)': 0.16; 'url:licenses': 0.16; 'sender:addr:gmail.com': 0.18; 'keys': 0.22; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'allows': 0.25; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'message-id:@mail.gmail.com': 0.27; 'dictionary': 0.29; 'objects': 0.29; 'class': 0.29; 'code': 0.31; 'received:google.com': 0.34; 'posting': 0.35; 'received:209.85': 0.35; 'url:org': 0.36; 'received:209': 0.37; 'received:209.85.216': 0.37; 'subject:: ': 0.38; 'header:Received:5': 0.40; 'your': 0.60; 'url:index': 0.61; 'license': 0.65
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=Vt9AqeJtVvdaq1kTjBVLnRbnc4qRzSnoCIfJm2T3jDk=; b=s4zwa1ytimNLG+H/zpSZ/B8cvBb+LWibLFjgyjYKgAp7A5ms8YhBg5FDf4VHntiPgx xvvp0O63xpRZI4dIsJ5FeWwV4iFe9LA2bOz/MM9qNEQj5KRtneIdbYw18ZyKWBDOw1Zk kekOGoxEsT9mm6rv/jPSXltBel02x1UFVLdliL7L32ReYNWzLRW0GUtmTtGWhWNBobda gByb0cj4+hXc8VGIiZPgQmuoTgFXx5oMqmKTovEmNTQE0Wqw1hGx6RSPgxtnRnhPDUua n8Q7dvwb1xGOHcpIVpgOrJut0fiOfUY/rzqYlf9wgqLwkXCascyx2Eo9Qs3aKkYTvimX P8+Q==
MIME-Version 1.0
Sender jsf80238@gmail.com
In-Reply-To <201212102248.50766.dave@cinege.com>
References <201212102248.50766.dave@cinege.com>
Date Mon, 10 Dec 2012 21:08:24 -0700
X-Google-Sender-Auth mYEaLjkWzp0Q3l3jbbqe_J7myR4
Subject Re: ANNOUNCE: Thesaurus - a recursive dictionary subclass using attributes
From Jason Friedman <jason@powerpull.net>
To Dave Cinege <dave@cinege.com>
Content-Type text/plain; charset=ISO-8859-1
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 <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.706.1355198907.29569.python-list@python.org> (permalink)
Lines 8
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1355198907 news.xs4all.nl 6914 [2001:888:2000:d::a6]:60541
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:34594

Show key headers only | View raw


> Thesaurus is a new a dictionary subclass which allows calling keys as
> if they are class attributes and will search through nested objects
> recursively when __getitem__ is called.

Good stuff.  You might consider:
1) Licensing under an OSI-approved license
(http://opensource.org/licenses/index.html).
2) Posting your code at ActiveState.com.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: ANNOUNCE: Thesaurus - a recursive dictionary subclass using attributes Jason Friedman <jason@powerpull.net> - 2012-12-10 21:08 -0700

csiph-web