Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #34670
| Date | 2012-12-11 19:59 -0500 |
|---|---|
| From | Mitya Sirenef <msirenef@lightbird.net> |
| 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> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.761.1355273950.29569.python-list@python.org> (permalink) |
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
Re: ANNOUNCE: Thesaurus - a recursive dictionary subclass using attributes Mitya Sirenef <msirenef@lightbird.net> - 2012-12-11 19:59 -0500
csiph-web