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


Groups > comp.lang.python > #34670

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

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <msirenef@lightbird.net>
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; 'be:': 0.09; 'subject:using': 0.09; 'url:activestate': 0.09; 'received:74.55.86': 0.16; 'received:74.55.86.74': 0.16; 'received:smtp.webfaction.com': 0.16; 'received:webfaction.com': 0.16; 'recipe': 0.16; 'wrote:': 0.17; 'meant': 0.21; 'sorry,': 0.22; 'this:': 0.23; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'url:code': 0.29; 'class': 0.29; 'to:addr:python- list': 0.33; 'pm,': 0.35; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'called': 0.39; 'received:192.168': 0.40; 'reminds': 0.84
Date Tue, 11 Dec 2012 19:59:00 -0500
From Mitya Sirenef <msirenef@lightbird.net>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121011 Thunderbird/16.0.1
MIME-Version 1.0
To python-list@python.org
Subject Re: ANNOUNCE: Thesaurus - a recursive dictionary subclass using attributes
References <201212102248.50766.dave@cinege.com> <201212111557.24851.dave@linkscape.net> <CALwzidnCVaPk2vERU+pPpmp82KAKpiUj-6_5m2Usr9tpatdrCw@mail.gmail.com> <201212111739.12794.dave@cinege.com> <50C7D585.7020301@lightbird.net>
In-Reply-To <50C7D585.7020301@lightbird.net>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
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.761.1355273950.29569.python-list@python.org> (permalink)
Lines 21
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1355273950 news.xs4all.nl 6946 [2001:888:2000:d::a6]:41214
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:34670

Show key headers only | View raw


On 12/11/2012 07:53 PM, Mitya Sirenef wrote:
> By the way, the Thesaurus class reminds me of using the old recipe
> called 'Bunch':
>
> http://code.activestate.com/recipes/52308-the-simple-but-handy-collector-of-a-bunch-of-named/ 
>
>
> like this:
>
> b = Bunch(x=1) b.stuff = Bunch(y=2)
>
> b.stuff.y 2 

Sorry, this was meant to be:

b = Bunch(x=1)
b.stuff = Bunch(y=2)

b.stuff.y
  2

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


Thread

Re: ANNOUNCE: Thesaurus - a recursive dictionary subclass using attributes Mitya Sirenef <msirenef@lightbird.net> - 2012-12-11 19:59 -0500

csiph-web