Method summary
- __init__(self, **kwds)
Methods
- __init__(self, **kwds)
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.datumBy: Alex Martelli From: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52308
© Copyright 2002-2009 Enthought, Inc.