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

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to