API Reference for Enthought Tool Suite 3.2.0

Often we want to just collect a bunch of stuff together, naming each item of the bunch; a dictionary's OK for that, but a small do- nothing class is even handier, and prettier to use. Whenever you want to group a few variables:

>>> point = Bunch(datum=2, squared=4, coord=12)
>>> point.datum

By: Alex Martelli From: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52308

Method summary

Methods

© Copyright 2002-2009 Enthought, Inc.