Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   Re: ANNOUNCE: Thesaurus - a recursive dictionary subclass usingattributes (http://www.velocityreviews.com/forums/t955397-re-announce-thesaurus-a-recursive-dictionary-subclass-usingattributes.html)

Mitya Sirenef 12-12-2012 12:59 AM

Re: ANNOUNCE: Thesaurus - a recursive dictionary subclass usingattributes
 
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/...unch-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



All times are GMT. The time now is 03:14 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.