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


Groups > comp.lang.python > #34670 > unrolled thread

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

Started byMitya Sirenef <msirenef@lightbird.net>
First post2012-12-11 19:59 -0500
Last post2012-12-11 19:59 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#34670 — Re: ANNOUNCE: Thesaurus - a recursive dictionary subclass using attributes

FromMitya Sirenef <msirenef@lightbird.net>
Date2012-12-11 19:59 -0500
SubjectRe: ANNOUNCE: Thesaurus - a recursive dictionary subclass using attributes
Message-ID<mailman.761.1355273950.29569.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web